fix slots for helminth level 10

This commit is contained in:
Sainan 2025-01-05 06:07:34 +01:00
parent 506e77db6c
commit 714ec45222

View File

@ -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 {