From 714ec452220d4b6344ab756c5a93e6d9c99d089e Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 5 Jan 2025 06:07:34 +0100 Subject: [PATCH] fix slots for helminth level 10 --- src/controllers/api/infestedFoundryController.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/infestedFoundryController.ts b/src/controllers/api/infestedFoundryController.ts index bcb741cd..b66339e2 100644 --- a/src/controllers/api/infestedFoundryController.ts +++ b/src/controllers/api/infestedFoundryController.ts @@ -144,7 +144,9 @@ export const infestedFoundryController: RequestHandler = async (req, res) => { if (suit.Configs && suit.Configs[0] && suit.Configs[0].pricol) { consumedSuit.c = suit.Configs[0].pricol; } - inventory.InfestedFoundry!.Slots!--; + if ((inventory.InfestedFoundry!.XP ?? 0) < 73125_00) { + inventory.InfestedFoundry!.Slots!--; + } inventory.InfestedFoundry!.ConsumedSuits ??= []; inventory.InfestedFoundry!.ConsumedSuits?.push(consumedSuit); inventory.InfestedFoundry!.LastConsumedSuit = suit; @@ -270,6 +272,9 @@ const addInfestedFoundryXP = (infestedFoundry: IInfestedFoundry, delta: number): infestedFoundry.Slots ??= 0; infestedFoundry.Slots += 20; } + if (prevXP < 73125_00 && infestedFoundry.XP >= 73125) { + infestedFoundry.Slots = 1; + } }; interface IHelminthSubsumeRequest {