Browse Source

contract added to aiInfoCmd

feature-workorder
MagicBot 1 year ago
parent
commit
af4c3819b9
  1. 18
      src/engine/devcmd/cmds/aiInfoCmd.java

18
src/engine/devcmd/cmds/aiInfoCmd.java

@ -63,6 +63,24 @@ public class aiInfoCmd extends AbstractDevCmd { @@ -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) {

Loading…
Cancel
Save