|
|
@ -399,8 +399,12 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
modifierRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1); |
|
|
|
modifierRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1); |
|
|
|
|
|
|
|
|
|
|
|
if (modifierRoll < 80) |
|
|
|
if (modifierRoll < 80) { |
|
|
|
modifier = LootManager.TableRoll(vendor.getLevel(), false); |
|
|
|
modifier = LootManager.TableRoll(vendor.getLevel(), false); |
|
|
|
|
|
|
|
ModTableEntry modTableEntry = ModTableEntry.rollTable(modTable, modifier); |
|
|
|
|
|
|
|
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modTableEntry.action); |
|
|
|
|
|
|
|
modifier = abstractPowerAction.getEffectsBase().getToken(); |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
modifier = 0; |
|
|
|
modifier = 0; |
|
|
|
|
|
|
|
|
|
|
|