From a577ecd3e4ccfb1c6d622ce6f0dd727c92910ace Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 26 Mar 2024 12:50:31 -0500 Subject: [PATCH] mob loot fix --- src/engine/gameManager/LootManager.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/engine/gameManager/LootManager.java b/src/engine/gameManager/LootManager.java index d489f7a0..121174be 100644 --- a/src/engine/gameManager/LootManager.java +++ b/src/engine/gameManager/LootManager.java @@ -79,22 +79,23 @@ public enum LootManager { if(mob == null) return; - if(mob.level > 80){ + if(mob.level == 85){ MobLoot mithril = new MobLoot(mob, ItemBase.getItemBase(1580021), 1, true); mob.getCharItemManager().addItemToInventory(mithril); - int stewardRoll = ThreadLocalRandom.current().nextInt(1,racial_stewards.size() + 1); - int guardRoll = ThreadLocalRandom.current().nextInt(1,undead_guards.size() + 1); + try{ + int stewardRoll = ThreadLocalRandom.current().nextInt(1,racial_stewards.size() + 1); MobLoot steward = new MobLoot(mob, ItemBase.getItemBase((Integer) racial_stewards.toArray()[stewardRoll]), true); mob.getCharItemManager().addItemToInventory(steward); }catch(Exception ex){ } try{ - - }catch(Exception ex){ + int guardRoll = ThreadLocalRandom.current().nextInt(1,undead_guards.size() + 1); MobLoot guard = new MobLoot(mob, ItemBase.getItemBase((Integer) undead_guards.toArray()[guardRoll]), true); mob.getCharItemManager().addItemToInventory(guard); + }catch(Exception ex){ + } return; }