contract added to aiInfoCmd

This commit is contained in:
2023-09-02 16:18:05 -04:00
parent 39379e1ac0
commit af4c3819b9
+18
View File
@@ -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) {