From d065e9ffc8cbb80996f1ed466c5cf713f4600f6b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 19:52:08 -0600 Subject: [PATCH] pet debugging --- src/engine/gameManager/PowersManager.java | 3 +++ src/engine/objects/Mob.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index b81534a5..0e174dba 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -248,6 +248,9 @@ public enum PowersManager { return true; // return false; } + + ChatManager.chatSystemInfo(playerCharacter,pb.name); + ChatManager.chatSystemInfo(playerCharacter,pb.powerCategory.name()); if (playerCharacter.getLastPower() != null) return true; //Check if Power Target is allowed to cast. diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7d8a8b86..476b33b7 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -565,6 +565,7 @@ public class Mob extends AbstractIntelligenceAgent { petMinion.runAfterLoad(); //DbManager.addToCache(petMinion); Mob.dynamic_pets.put(petMinion.getObjectUUID(),petMinion); + Logger.info("Added Pet To dynamic_pets with UUID: " + petMinion.getObjectUUID()); petMinion.setLoc(petMinion.bindLoc); return petMinion; @@ -937,8 +938,10 @@ public class Mob extends AbstractIntelligenceAgent { WorldGrid.RemoveWorldObject(this); //DbManager.removeFromCache(this); - if(Mob.dynamic_pets.containsKey(this.getObjectUUID())) + if(Mob.dynamic_pets.containsKey(this.getObjectUUID())) { Mob.dynamic_pets.remove(this.getObjectUUID()); + Logger.info("Removed Pet From dynamic_pets with UUID: " + this.getObjectUUID()); + } PlayerCharacter petOwner = (PlayerCharacter) this.guardCaptain; if (petOwner != null) {