From d0df4062361ab521b2e374b20900c775e4869fcb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 11:53:53 -0400 Subject: [PATCH] Item prefix and suffix applied --- src/engine/gameManager/ForgeManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 86ffc095..85b92d1f 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -16,7 +16,6 @@ import engine.net.DispatchMessage; import engine.net.client.msg.ItemProductionMsg; import engine.objects.*; import engine.powers.EffectsBase; -import engine.powers.poweractions.AbstractPowerAction; import org.pmw.tinylog.Logger; import java.util.ArrayList; @@ -396,8 +395,8 @@ public enum ForgeManager implements Runnable { if (rollForModifier < 80) { int randomModifier = LootManager.TableRoll(vendor.getLevel(), false); modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier); - AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modTableEntry.action); - modifier = abstractPowerAction.getEffectsBase().getToken(); + EffectsBase effectsBase = PowersManager.getEffectByIDString(modTableEntry.action); + modifier = effectsBase.getToken(); } return modifier;