forked from MagicBane/Server
contract added to aiInfoCmd
This commit is contained in:
@@ -63,6 +63,24 @@ public class aiInfoCmd extends AbstractDevCmd {
|
|||||||
output += mob.getName() + newline;
|
output += mob.getName() + newline;
|
||||||
output += mob.agentType.toString() + 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) {
|
if (mob.behaviourType != null) {
|
||||||
output += "BehaviourType: " + mob.behaviourType.toString() + newline;
|
output += "BehaviourType: " + mob.behaviourType.toString() + newline;
|
||||||
if (mob.behaviourType.BehaviourHelperType != null) {
|
if (mob.behaviourType.BehaviourHelperType != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user