From 99671697ba1d807c2a5f3d67df725c5c44053110 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 11:05:30 -0400 Subject: [PATCH] Item prefix and suffix applied --- 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 78dd0ba4..a59ebc66 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -394,8 +394,8 @@ public enum ForgeManager implements Runnable { rollForModifier = ThreadLocalRandom.current().nextInt(1, 100 + 1); if (rollForModifier < 80) { - rollForModifier = LootManager.TableRoll(vendor.getLevel(), false); - modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, rollForModifier); + int randomModifier = LootManager.TableRoll(vendor.getLevel(), false); + modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier); } if (modTableEntry != null) {