From 0d31bc4280611dfa3ad772d470b7d03cbe78f195 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jun 2024 19:00:58 -0500 Subject: [PATCH] contract and rune drop work --- src/engine/devcmd/cmds/SimulateBootyCmd.java | 2 +- src/engine/gameManager/LootManager.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/devcmd/cmds/SimulateBootyCmd.java b/src/engine/devcmd/cmds/SimulateBootyCmd.java index f6ef0bb0..544e6eb4 100644 --- a/src/engine/devcmd/cmds/SimulateBootyCmd.java +++ b/src/engine/devcmd/cmds/SimulateBootyCmd.java @@ -51,7 +51,7 @@ public class SimulateBootyCmd extends AbstractDevCmd { int failures = 0; int goldAmount = 0; - for (int i = 0; i < 100; ++i) { + for (int i = 0; i < 1000; ++i) { try { mob.loadInventory(); diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index cdfc1037..e8f1bb96 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -219,8 +219,8 @@ public enum LootManager { if(randomRune != null) { outItem = new MobLoot(mob, randomRune, false); } - if(ThreadLocalRandom.current().nextInt(1,101) < 71) - return null; // cut down world drops rates of runes by 70% + //if(ThreadLocalRandom.current().nextInt(1,101) < 71) + // return null; // cut down world drops rates of runes by 70% } if(outItem.getItemBase().getType().equals(Enum.ItemType.CONTRACT)){ @@ -228,8 +228,8 @@ public enum LootManager { if(randomContract != null) { outItem = new MobLoot(mob, randomContract, false); } - if(ThreadLocalRandom.current().nextInt(1,101) < 71) - return null; // cut down world drops rates of contracts by 70% + //if(ThreadLocalRandom.current().nextInt(1,101) < 71) + // return null; // cut down world drops rates of contracts by 70% } if(outItem.getItemBase().getType().equals(Enum.ItemType.CONTRACT) || outItem.getItemBase().getType().equals(Enum.ItemType.RUNE)){