|
|
|
@ -8,7 +8,6 @@
@@ -8,7 +8,6 @@
|
|
|
|
|
|
|
|
|
|
package engine.gameManager; |
|
|
|
|
|
|
|
|
|
import engine.loot.ModTableEntry; |
|
|
|
|
import engine.loot.ModTypeTableEntry; |
|
|
|
|
import engine.loot.WorkOrder; |
|
|
|
|
import engine.mbEnums; |
|
|
|
@ -16,7 +15,6 @@ import engine.net.DispatchMessage;
@@ -16,7 +15,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; |
|
|
|
@ -364,7 +362,6 @@ public enum ForgeManager implements Runnable {
@@ -364,7 +362,6 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
int modifier = 0; |
|
|
|
|
ModTypeTableEntry modTypeTableEntry = null; |
|
|
|
|
ModTableEntry modRollEntry = null; |
|
|
|
|
int modifierRoll; |
|
|
|
|
|
|
|
|
|
switch (itemModType) { |
|
|
|
@ -383,15 +380,8 @@ public enum ForgeManager implements Runnable {
@@ -383,15 +380,8 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
modifierRoll = ThreadLocalRandom.current().nextInt(1, 100 + 1); |
|
|
|
|
|
|
|
|
|
if (modifierRoll < 80) { |
|
|
|
|
modifierRoll = LootManager.TableRoll(vendor.getLevel(), false); |
|
|
|
|
modRollEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, modifierRoll); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (modRollEntry != null) { |
|
|
|
|
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modRollEntry.action); |
|
|
|
|
modifier = abstractPowerAction.getEffectsBase().getToken(); |
|
|
|
|
} |
|
|
|
|
if (modifierRoll < 80) |
|
|
|
|
modifier = LootManager.TableRoll(vendor.getLevel(), false); |
|
|
|
|
|
|
|
|
|
return modifier; |
|
|
|
|
} |
|
|
|
|