From 6af4cd2fc2490ab1b8e0129f163370726bd23685 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 5 Mar 2025 19:20:46 -0600 Subject: [PATCH] mithril drop rates --- src/engine/gameManager/LootManager.java | 32 +++++-------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index 72c6c915..b9d25078 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -268,32 +268,6 @@ public enum LootManager { } public static void SpecialCaseRuneDrop(Mob mob,ArrayList entries){ - //int lootTableID = 0; - //for(BootySetEntry entry : entries){ - // if(entry.bootyType.equals("LOOT")){ - // lootTableID = entry.genTable; - // break; - // } - //} - - // if(lootTableID == 0) - // return; - - //int RuneTableID = 0; - //for(GenTableEntry entry : _genTables.get(lootTableID)){ - // try { - // if (ItemBase.getItemBase(_itemTables.get(entry.itemTableID).get(0).cacheID).getType().equals(Enum.ItemType.RUNE)) { - // RuneTableID = entry.itemTableID; - // break; - // } - // }catch(Exception e){ - - // } - //} - - //if(RuneTableID == 0) - // return; - int roll = ThreadLocalRandom.current().nextInt(static_rune_ids.size() + 1); int itemId = static_rune_ids.get(0); try { @@ -574,6 +548,10 @@ public enum LootManager { case RESOURCE: return; } + + if (ib.getUUID() == 1580021)//mithril + return; + toAdd.setIsID(true); mob.getCharItemManager().addItemToInventory(toAdd); } @@ -633,6 +611,8 @@ public enum LootManager { if (chanceRoll > bse.dropChance) return; + if(bse.itemBase == 1580021)//mithril + return; MobLoot lootItem = new MobLoot(mob, ItemBase.getItemBase(bse.itemBase), true); if (lootItem != null) {