From 6e465248b11ae14bb9349c5742f5262ecfa9e3db Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 5 Jun 2024 19:51:14 -0500 Subject: [PATCH] drop rates adjusted again again third time --- src/engine/gameManager/LootManager.java | 7 ++----- src/engine/objects/Mob.java | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 42fe1deb..ddb69f8e 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -123,15 +123,13 @@ public enum LootManager { case "LOOT": if (ThreadLocalRandom.current().nextInt(1, 100 + 1) < (bse.dropChance * dropRate)) GenerateLootDrop(mob, bse.genTable); //generate normal loot drop - if(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){ - mob.hasExtraRolled = true; + if(ThreadLocalRandom.current().nextInt(1,250) == 100){ MobLoot extraLoot = rollForContract(bse.genTable, mob); if (extraLoot != null) { mob.getCharItemManager().addItemToInventory(extraLoot); } } - if(!mob.hasExtraRolled && ThreadLocalRandom.current().nextInt(1,5000) < 10 * dropRate){ - mob.hasExtraRolled = true; + if(ThreadLocalRandom.current().nextInt(1,250) == 100){ MobLoot extraLoot = rollForRune(bse.genTable, mob); if (extraLoot != null) { mob.getCharItemManager().addItemToInventory(extraLoot); @@ -190,7 +188,6 @@ public enum LootManager { mob.getCharItemManager().addItemToInventory(specialDrop); mob.setResists(new Resists("Dropper")); } - mob.hasExtraRolled = false; } public static MobLoot getGenTableItem(int genTableID, AbstractCharacter mob) { diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index aea4a3f6..0371dff4 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -88,7 +88,6 @@ public class Mob extends AbstractIntelligenceAgent { public int contractCounter = 0; public int runeCounter = 0; - public boolean hasExtraRolled = false; // New Mobile constructor. Fill in the blanks and then call // PERSIST.