This commit is contained in:
Sainan 2025-01-05 07:17:38 +01:00
parent ab326eedb6
commit 9c09d4fb5c

View File

@ -228,7 +228,10 @@ export const infestedFoundryController: RequestHandler = async (req, res) => {
inventory.InfestedFoundry ??= {};
inventory.InfestedFoundry.XP ??= 0;
if (151875_00 > inventory.InfestedFoundry.XP) {
const recipeChanges = addInfestedFoundryXP(inventory.InfestedFoundry, 151875_00 - inventory.InfestedFoundry.XP)
const recipeChanges = addInfestedFoundryXP(
inventory.InfestedFoundry,
151875_00 - inventory.InfestedFoundry.XP
);
addRecipes(inventory, recipeChanges);
await inventory.save();
}