Browse Source

Bugfix in info dealing with mob flags on npcs.

master
MagicBot 2 years ago
parent
commit
a0e63cde8f
  1. 15
      src/engine/devcmd/cmds/InfoCmd.java

15
src/engine/devcmd/cmds/InfoCmd.java

@ -350,13 +350,16 @@ public class InfoCmd extends AbstractDevCmd {
output += StringUtils.addWS("Level: " + targetNPC.getLevel(), 20); output += StringUtils.addWS("Level: " + targetNPC.getLevel(), 20);
MobBase mobBase = targetNPC.getMobBase(); MobBase mobBase = targetNPC.getMobBase();
if (mobBase != null) if (mobBase != null) {
output += "RaceID: " + mobBase.getObjectUUID(); output += "Mobbbase: " + mobBase.getObjectUUID();
else output += newline;
output += "RaceID: " + targetNPC.getLoadID(); output += "Flags: " + targetNPC.getMobBase().getFlags().toString();
} else {
output += "RaceID (no mobbase): " + targetNPC.getLoadID();
output += "Flags: " + MobBase.getMobBase(targetNPC.getLoadID()).getFlags().toString();
}
output += newline;
output += "Flags: " + targetNPC.getMobBase().getFlags().toString();
output += newline; output += newline;
output += "Spawn: (" + targetNPC.getBindLoc().getX(); output += "Spawn: (" + targetNPC.getBindLoc().getX();
output += ", " + targetNPC.getBindLoc().getY(); output += ", " + targetNPC.getBindLoc().getY();

Loading…
Cancel
Save