fix slots for helminth level 10
This commit is contained in:
parent
506e77db6c
commit
714ec45222
@ -144,7 +144,9 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
|
|||||||
if (suit.Configs && suit.Configs[0] && suit.Configs[0].pricol) {
|
if (suit.Configs && suit.Configs[0] && suit.Configs[0].pricol) {
|
||||||
consumedSuit.c = 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 ??= [];
|
||||||
inventory.InfestedFoundry!.ConsumedSuits?.push(consumedSuit);
|
inventory.InfestedFoundry!.ConsumedSuits?.push(consumedSuit);
|
||||||
inventory.InfestedFoundry!.LastConsumedSuit = suit;
|
inventory.InfestedFoundry!.LastConsumedSuit = suit;
|
||||||
@ -270,6 +272,9 @@ const addInfestedFoundryXP = (infestedFoundry: IInfestedFoundry, delta: number):
|
|||||||
infestedFoundry.Slots ??= 0;
|
infestedFoundry.Slots ??= 0;
|
||||||
infestedFoundry.Slots += 20;
|
infestedFoundry.Slots += 20;
|
||||||
}
|
}
|
||||||
|
if (prevXP < 73125_00 && infestedFoundry.XP >= 73125) {
|
||||||
|
infestedFoundry.Slots = 1;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface IHelminthSubsumeRequest {
|
interface IHelminthSubsumeRequest {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user