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 -=
|
inventory.InfestedFoundry!.Resources!.find(x => x.ItemType == request.ResourceTypes[i])!.Count -=
|
||||||
request.ResourceCosts[i];
|
request.ResourceCosts[i];
|
||||||
}
|
}
|
||||||
|
inventory.InfestedFoundry!.InvigorationsApplied ??= 0;
|
||||||
|
inventory.InfestedFoundry!.InvigorationsApplied += 1;
|
||||||
await inventory.save();
|
await inventory.save();
|
||||||
res.json({
|
res.json({
|
||||||
SuitId: request.SuitId,
|
SuitId: request.SuitId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user