From c19c5166695cd42fd6e4808d5025b8c25edf16ca Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 20 Apr 2024 10:39:45 -0400 Subject: [PATCH] Item prefix and suffix applied --- src/engine/gameManager/ForgeManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 99110089..4580b6af 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -293,14 +293,12 @@ public enum ForgeManager implements Runnable { if (forgedItem.prefixToken != 0) { EffectsBase prefix = PowersManager.getEffectByToken(forgedItem.prefixToken); - AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(prefix.getIDString()); - abstractPowerAction.applyEffectForItem(forgedItem, 0); + forgedItem.addPermanentEnchantment(prefix.getIDString(), 0); } if (forgedItem.prefixToken != 0) { EffectsBase suffix = PowersManager.getEffectByToken(forgedItem.suffixToken); - AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(suffix.getIDString()); - abstractPowerAction.applyEffectForItem(forgedItem, 0); + forgedItem.addPermanentEnchantment(suffix.getIDString(), 0); } }