From bfb6b0f5eb8f610d33ae675bf7ad8258d8957b4b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Apr 2023 09:44:34 -0500 Subject: [PATCH] ./info now shows building information not just region --- src/engine/devcmd/cmds/InfoCmd.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 0b45ee99..8e0c3592 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -396,6 +396,10 @@ public class InfoCmd extends AbstractDevCmd { output += "BuildingID : " + targetNPC.getRegion().parentBuildingID; output += "building level : " + targetNPC.getRegion().level; output += "building room : " + targetNPC.getRegion().room; + }else if(targetNPC.getBuilding() != null) { + output += newline; + output += "Building : " + targetNPC.getBuilding(); + output += "In BuildingLoc : " + targetNPC.inBuildingLoc; }else{ output += newline; output += "No building found."; @@ -462,6 +466,19 @@ public class InfoCmd extends AbstractDevCmd { output += "Parent Zone LoadNum : " + targetMob.getParentZone().getLoadNum(); output += newline; output += "isMoving : " + targetMob.isMoving(); + if (targetMob.getRegion() != null){ + output += newline; + output += "BuildingID : " + targetMob.getRegion().parentBuildingID; + output += "building level : " + targetMob.getRegion().level; + output += "building room : " + targetMob.getRegion().room; + }else if(targetMob.building != null) { + output += newline; + output += "BuildingID : " + targetMob.building; + output += "In BuildingLoc : " + targetMob.inBuildingLoc; + }else{ + output += newline; + output += "No building found."; + } break; case Item: //intentional passthrough case MobLoot: