feat: invigorations #715

Merged
Sainan merged 4 commits from invigorations into main 2025-01-04 21:17:42 -08:00
Showing only changes of commit b96e976a5e - Show all commits

View File

@ -115,6 +115,9 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
inventory.InfestedFoundry ??= {}; inventory.InfestedFoundry ??= {};
inventory.InfestedFoundry.InvigorationIndex = request.OfferingsIndex; inventory.InfestedFoundry.InvigorationIndex = request.OfferingsIndex;
inventory.InfestedFoundry.InvigorationSuitOfferings = request.SuitTypes; inventory.InfestedFoundry.InvigorationSuitOfferings = request.SuitTypes;
if (request.Extra) {
inventory.InfestedFoundry.InvigorationsApplied = 0;
}
await inventory.save(); await inventory.save();
res.json({ res.json({
InventoryChanges: { InventoryChanges: {