diff --git a/src/engine/devcmd/cmds/aiInfoCmd.java b/src/engine/devcmd/cmds/aiInfoCmd.java index 065e5f28..e438fb79 100644 --- a/src/engine/devcmd/cmds/aiInfoCmd.java +++ b/src/engine/devcmd/cmds/aiInfoCmd.java @@ -63,6 +63,24 @@ public class aiInfoCmd extends AbstractDevCmd { output += mob.getName() + newline; output += mob.agentType.toString() + newline; + int contractID = 0; + + if (mob.isPlayerGuard() == true) { + + if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) + contractID = mob.guardCaptain.contract.getContractID(); + else + contractID = mob.contract.getContractID(); + } + + if (contractID != 0) { + + if (mob.agentType.equals(Enum.AIAgentType.GUARDMINION)) + output += "Captain Contract: " + contractID + newline; + else + output += "Contract: " + contractID + newline; + } + if (mob.behaviourType != null) { output += "BehaviourType: " + mob.behaviourType.toString() + newline; if (mob.behaviourType.BehaviourHelperType != null) {