Browse Source

Item prefix and suffix applied

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

5
src/engine/gameManager/ForgeManager.java

@ -16,7 +16,6 @@ import engine.net.DispatchMessage; @@ -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 { @@ -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;

Loading…
Cancel
Save