Browse Source

Using LootManager for forge scaling.

master
MagicBot 1 year ago
parent
commit
b05c4a91e5
  1. 2
      src/engine/gameManager/LootManager.java
  2. 4
      src/engine/objects/ItemFactory.java

2
src/engine/gameManager/LootManager.java

@ -261,7 +261,7 @@ public enum LootManager {
return inItem; return inItem;
} }
private static int TableRoll(int mobLevel, Boolean inHotzone) { public static int TableRoll(int mobLevel, Boolean inHotzone) {
if (mobLevel > 65) if (mobLevel > 65)
mobLevel = 65; mobLevel = 65;

4
src/engine/objects/ItemFactory.java

@ -710,7 +710,7 @@ public class ItemFactory {
if (rollPrefix < 80) { if (rollPrefix < 80) {
int randomPrefix = getAdjustedRollForNPC((int) calculatedMobLevel, prefixTypeTable.minRoll, prefixTypeTable.maxRoll); int randomPrefix = LootManager.TableRoll((int) calculatedMobLevel, false);
prefixEntry = ModTableEntry.rollTable(prefixTypeTable.modTableID, randomPrefix); prefixEntry = ModTableEntry.rollTable(prefixTypeTable.modTableID, randomPrefix);
if (prefixEntry != null) if (prefixEntry != null)
@ -722,7 +722,7 @@ public class ItemFactory {
if (rollSuffix < 80) { if (rollSuffix < 80) {
int randomSuffix = getAdjustedRollForNPC((int) calculatedMobLevel, suffixTypeTable.minRoll, suffixTypeTable.maxRoll); int randomSuffix = LootManager.TableRoll((int) calculatedMobLevel, false);
suffixEntry = ModTableEntry.rollTable(suffixTypeTable.modTableID, randomSuffix); suffixEntry = ModTableEntry.rollTable(suffixTypeTable.modTableID, randomSuffix);
if (suffixEntry != null) if (suffixEntry != null)

Loading…
Cancel
Save