update InvigorationsApplied
This commit is contained in:
parent
31e13c6097
commit
803252508f
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user