wall archer debugging

This commit is contained in:
2023-04-19 19:05:24 -05:00
parent f3b6f5595b
commit aa8f59f6f7
3 changed files with 6 additions and 3 deletions
@@ -478,7 +478,6 @@ public enum BuildingManager {
mob.setRank(rank);
mob.setPlayerGuard(true);
mob.setParentZone(zone);
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher;
return true;
}
if (NPC.ISGuardCaptain(contractID.getContractID())) {
+1 -1
View File
@@ -319,7 +319,7 @@ public enum NPCManager {
slot += guardCaptain.siegeMinionMap.size() + 1;
guardCaptain.siegeMinionMap.put(mob, slot);
//mob.setInBuildingLoc(guardCaptain.building, guardCaptain);
mob.setInBuildingLoc(guardCaptain.building, guardCaptain);
//mob.setBindLoc(loc.add(mob.inBuildingLoc));
mob.setLoc(guardCaptain.building.getLoc());
mob.setLastRegion(AbstractWorldObject.GetRegionByWorldObject(mob));
+5 -1
View File
@@ -2002,7 +2002,11 @@ public class Mob extends AbstractIntelligenceAgent {
this.BehaviourType = this.getMobBase().fsm;
}
if(this.isPlayerGuard() && this.contract != null){
this.BehaviourType = Enum.MobBehaviourType.GuardCaptain;
if(NPC.ISWallArcher(this.getContract().getContractID())){
this.BehaviourType = MobBehaviourType.GuardWallArcher;
} else {
this.BehaviourType = Enum.MobBehaviourType.GuardCaptain;
}
}
} catch (Exception e) {
Logger.error(e.getMessage());