Browse Source

Item prefix and suffix applied

combat-2
MagicBot 8 months ago
parent
commit
c19c516669
  1. 6
      src/engine/gameManager/ForgeManager.java

6
src/engine/gameManager/ForgeManager.java

@ -293,14 +293,12 @@ public enum ForgeManager implements Runnable {
if (forgedItem.prefixToken != 0) { if (forgedItem.prefixToken != 0) {
EffectsBase prefix = PowersManager.getEffectByToken(forgedItem.prefixToken); EffectsBase prefix = PowersManager.getEffectByToken(forgedItem.prefixToken);
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(prefix.getIDString()); forgedItem.addPermanentEnchantment(prefix.getIDString(), 0);
abstractPowerAction.applyEffectForItem(forgedItem, 0);
} }
if (forgedItem.prefixToken != 0) { if (forgedItem.prefixToken != 0) {
EffectsBase suffix = PowersManager.getEffectByToken(forgedItem.suffixToken); EffectsBase suffix = PowersManager.getEffectByToken(forgedItem.suffixToken);
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(suffix.getIDString()); forgedItem.addPermanentEnchantment(suffix.getIDString(), 0);
abstractPowerAction.applyEffectForItem(forgedItem, 0);
} }
} }

Loading…
Cancel
Save