From afc91e22e5586022249543da0a735d50b1486d44 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 10 Mar 2024 12:48:05 -0500 Subject: [PATCH] login crash bug --- src/engine/objects/CharacterItemManager.java | 1 + src/engine/objects/Mob.java | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 445a1942..8afe99c3 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1272,6 +1272,7 @@ public class CharacterItemManager { Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); this.inventory.add(resource); this.itemIDtoType.put(resource.getObjectUUID(), resource.getObjectType().ordinal()); + this.updateInventory(purge,false); return true; } this.inventory.add(i); diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index e02d9474..f722f7ac 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1605,13 +1605,6 @@ public class Mob extends AbstractIntelligenceAgent { this.lastName = this.getContract().getName(); this.healthMax = this.mobBase.getHealthMax(); - if(this.mobBase.getLevel() > 80){ - if(this.getMobBaseID() == 14319){//ithriana - this.healthMax = 5400000; - } else{ - this.healthMax = 1500000; - } - } this.manaMax = 0; this.staminaMax = 0; this.setHealth(this.healthMax); @@ -1712,6 +1705,13 @@ public class Mob extends AbstractIntelligenceAgent { try { NPCManager.applyRuneSetEffects(this); recalculateStats(); + if(this.mobBase.getLevel() > 80){ + if(this.getMobBaseID() == 14319){//ithriana + this.healthMax = 5400000; + } else{ + this.healthMax = 1500000; + } + } this.setHealth(this.healthMax); // Set bounds for this mobile