From bfbb46f9cfd5486dd5dd8beff8320e42faf76905 Mon Sep 17 00:00:00 2001 From: DaPigGuy Date: Fri, 10 Jan 2025 20:50:49 -0800 Subject: [PATCH] Correctly count ingredient costs for recipes that produce >1 items --- updater/update_items.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/updater/update_items.mjs b/updater/update_items.mjs index 23528aa..942021f 100644 --- a/updater/update_items.mjs +++ b/updater/update_items.mjs @@ -198,7 +198,8 @@ class ItemUpdater { count: 0 }; const ingredientData = ingredients[ingredientName]; - ingredientData.count += ingredient.ItemCount * count; + ingredientData.count += + ingredient.ItemCount * Math.ceil(count / recipe.num); if ( ingredientRawName.includes("WeaponParts") ||