From 9ad5f239b035a02c1332b6eedbd86a3e6de0c148 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Jul 2024 16:54:11 -0400 Subject: [PATCH] No modtable defaults to workorder. --- src/engine/gameManager/ForgeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index be62558c..de3ac80f 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -265,12 +265,12 @@ public enum ForgeManager implements Runnable { // Assign a prefix and suffix to this item if random rolled - if (workOrder.prefixToken == 0) + if (workOrder.prefixToken == 0 && workOrder.vendor.getItemModTable().contains((template.modTable))) forgedItem.prefixToken = calcRandomMod(workOrder.vendor, mbEnums.ItemModType.PREFIX, template.modTable); else forgedItem.prefixToken = workOrder.prefixToken; - if (workOrder.suffixToken == 0) + if (workOrder.suffixToken == 0 && workOrder.vendor.getItemModTable().contains((template.modTable))) forgedItem.suffixToken = calcRandomMod(workOrder.vendor, mbEnums.ItemModType.SUFFIX, template.modTable); else forgedItem.suffixToken = workOrder.suffixToken;