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 803252508f - Show all commits

View File

@ -198,6 +198,8 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
inventory.InfestedFoundry!.Resources!.find(x => x.ItemType == request.ResourceTypes[i])!.Count -=
request.ResourceCosts[i];
}
inventory.InfestedFoundry!.InvigorationsApplied ??= 0;
inventory.InfestedFoundry!.InvigorationsApplied += 1;
await inventory.save();
res.json({
SuitId: request.SuitId,