From 557292a56d318985087e5aae5413d204cfd6cd87 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 7 Aug 2023 14:31:33 -0400 Subject: [PATCH] Removed unused code. --- src/engine/objects/ItemFactory.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/engine/objects/ItemFactory.java b/src/engine/objects/ItemFactory.java index 8469adbb..a00e354e 100644 --- a/src/engine/objects/ItemFactory.java +++ b/src/engine/objects/ItemFactory.java @@ -761,20 +761,6 @@ public class ItemFactory { return toRoll; } - private static int getAdjustedRollForNPC(int npcLevel, int minRoll, int maxRoll) { - int randomRoll; - - int minValue = (npcLevel - 5) * 5; - int maxValue = (npcLevel + 15) * 5; - - minValue = Math.max(minRoll, Math.min(maxRoll, minValue)); - maxValue = Math.max(minRoll, Math.min(maxRoll, maxValue)); - - randomRoll = ThreadLocalRandom.current().nextInt(minValue, maxValue + 1); //Does not return Max, but does return min? - - return randomRoll; - } - public static MobLoot produceRandomRoll(NPC npc, PlayerCharacter pc, String prefixString, String suffixString, int itemID) { boolean useWarehouse = false;