feat: all server-side metamorphosis levels #716

Merged
Sainan merged 4 commits from helminth-xp into main 2025-01-04 22:16:48 -08:00
Showing only changes of commit 714ec45222 - Show all commits

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 {