From 291a20c4d0f5ec71a48125b0869f22536774283e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Feb 2025 07:11:37 -0600 Subject: [PATCH] break point --- src/engine/objects/MobBase.java | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index ce41d879..9375bf16 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -131,16 +131,19 @@ public class MobBase extends AbstractGameObject { return equip; for (BootySetEntry equipmentSetEntry : equipList) { + try { + MobEquipment mobEquipment = new MobEquipment(equipmentSetEntry.itemBase, equipmentSetEntry.dropChance); + ItemBase itemBase = mobEquipment.getItemBase(); - MobEquipment mobEquipment = new MobEquipment(equipmentSetEntry.itemBase, equipmentSetEntry.dropChance); - ItemBase itemBase = mobEquipment.getItemBase(); + if (itemBase != null) { + if (itemBase.getType().equals(Enum.ItemType.WEAPON)) + if (mobEquipment.getSlot() == 1 && itemBase.getEquipFlag() == 2) + mobEquipment.setSlot(2); - if (itemBase != null) { - if (itemBase.getType().equals(Enum.ItemType.WEAPON)) - if (mobEquipment.getSlot() == 1 && itemBase.getEquipFlag() == 2) - mobEquipment.setSlot(2); - - equip.put(mobEquipment.getSlot(), mobEquipment); + equip.put(mobEquipment.getSlot(), mobEquipment); + } + }catch(Exception e){ + Logger.error(e); } }