From b05c4a91e5ed0d192b057d3a0292853c8e1f75e2 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 7 Aug 2023 13:53:16 -0400 Subject: [PATCH] Using LootManager for forge scaling. --- src/engine/gameManager/LootManager.java | 2 +- src/engine/objects/ItemFactory.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index b19e5bf6..56b19d59 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -261,7 +261,7 @@ public enum LootManager { return inItem; } - private static int TableRoll(int mobLevel, Boolean inHotzone) { + public static int TableRoll(int mobLevel, Boolean inHotzone) { if (mobLevel > 65) mobLevel = 65; diff --git a/src/engine/objects/ItemFactory.java b/src/engine/objects/ItemFactory.java index a4ca24aa..6eaa0987 100644 --- a/src/engine/objects/ItemFactory.java +++ b/src/engine/objects/ItemFactory.java @@ -710,7 +710,7 @@ public class ItemFactory { 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); if (prefixEntry != null) @@ -722,7 +722,7 @@ public class ItemFactory { 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); if (suffixEntry != null)