From 90271890d746010a902d411002acf5049a5e472e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 09:59:04 -0400 Subject: [PATCH] Item prefix and suffix applied --- src/engine/gameManager/ForgeManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 9607ecea..64f3873a 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -399,8 +399,12 @@ public enum ForgeManager implements Runnable { modifierRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1); - if (modifierRoll < 80) + if (modifierRoll < 80) { modifier = LootManager.TableRoll(vendor.getLevel(), false); + ModTableEntry modTableEntry = ModTableEntry.rollTable(modTable, modifier); + AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modTableEntry.action); + modifier = abstractPowerAction.getEffectsBase().getToken(); + } else modifier = 0;