|
|
|
@ -379,12 +379,12 @@ public enum ForgeManager implements Runnable {
@@ -379,12 +379,12 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
switch (itemModType) { |
|
|
|
|
case PREFIX: |
|
|
|
|
modifier = vendor.getModTypeTable().get(vendor.getItemModTable().indexOf(modTable)); |
|
|
|
|
modTypeTableEntry = ModTypeTableEntry.rollTable(modifier, ThreadLocalRandom.current().nextInt(1, 100 + 1)); |
|
|
|
|
int randomPrefix = vendor.getModTypeTable().get(vendor.getItemModTable().indexOf(modTable)); |
|
|
|
|
modTypeTableEntry = ModTypeTableEntry.rollTable(randomPrefix, ThreadLocalRandom.current().nextInt(1, 100 + 1)); |
|
|
|
|
break; |
|
|
|
|
case SUFFIX: |
|
|
|
|
modifier = vendor.getModSuffixTable().get(vendor.getItemModTable().indexOf(modTable)); |
|
|
|
|
modTypeTableEntry = ModTypeTableEntry.rollTable(modifier, ThreadLocalRandom.current().nextInt(1, 100 + 1)); |
|
|
|
|
int randomSuffix = vendor.getModSuffixTable().get(vendor.getItemModTable().indexOf(modTable)); |
|
|
|
|
modTypeTableEntry = ModTypeTableEntry.rollTable(randomSuffix, ThreadLocalRandom.current().nextInt(1, 100 + 1)); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -396,9 +396,6 @@ public enum ForgeManager implements Runnable {
@@ -396,9 +396,6 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
if (rollForModifier < 80) { |
|
|
|
|
int randomModifier = LootManager.TableRoll(vendor.getLevel(), false); |
|
|
|
|
modTableEntry = ModTableEntry.rollTable(modTypeTableEntry.modTableID, randomModifier); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (modTableEntry != null) { |
|
|
|
|
AbstractPowerAction abstractPowerAction = PowersManager.getPowerActionByIDString(modTableEntry.action); |
|
|
|
|
modifier = abstractPowerAction.getEffectsBase().getToken(); |
|
|
|
|
} |
|
|
|
|