From af4c3819b97067ab4658d7dfd8ee25b69620afd7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 2 Sep 2023 16:18:05 -0400 Subject: [PATCH] contract added to aiInfoCmd --- src/engine/devcmd/cmds/aiInfoCmd.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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) {