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;
import engine.net.client.msg.ItemProductionMsg; import engine.net.client.msg.ItemProductionMsg;
import engine.objects.*; import engine.objects.*;
import engine.powers.EffectsBase; import engine.powers.EffectsBase;
import engine.powers.poweractions.AbstractPowerAction;
import org.pmw.tinylog.Logger; import org.pmw.tinylog.Logger;
import java.util.ArrayList; import java.util.ArrayList;
@ -396,8 +395,8 @@ public enum ForgeManager implements Runnable {
if (rollForModifier < 80) { if (rollForModifier < 80) {
int randomModifier = LootManager.TableRoll(vendor.getLevel(), false); int randomModifier = LootManager.TableRoll(vendor.getLevel(), false);
modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier); modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier);
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modTableEntry.action); EffectsBase effectsBase = PowersManager.getEffectByIDString(modTableEntry.action);
modifier = abstractPowerAction.getEffectsBase().getToken(); modifier = effectsBase.getToken();
} }
return modifier; return modifier;

Loading…
Cancel
Save