Browse Source

wall archer debugging

master
FatBoy-DOTC 2 years ago
parent
commit
aa8f59f6f7
  1. 1
      src/engine/gameManager/BuildingManager.java
  2. 2
      src/engine/gameManager/NPCManager.java
  3. 4
      src/engine/objects/Mob.java

1
src/engine/gameManager/BuildingManager.java

@ -478,7 +478,6 @@ public enum BuildingManager {
mob.setRank(rank); mob.setRank(rank);
mob.setPlayerGuard(true); mob.setPlayerGuard(true);
mob.setParentZone(zone); mob.setParentZone(zone);
mob.BehaviourType = Enum.MobBehaviourType.GuardWallArcher;
return true; return true;
} }
if (NPC.ISGuardCaptain(contractID.getContractID())) { if (NPC.ISGuardCaptain(contractID.getContractID())) {

2
src/engine/gameManager/NPCManager.java

@ -319,7 +319,7 @@ public enum NPCManager {
slot += guardCaptain.siegeMinionMap.size() + 1; slot += guardCaptain.siegeMinionMap.size() + 1;
guardCaptain.siegeMinionMap.put(mob, slot); guardCaptain.siegeMinionMap.put(mob, slot);
//mob.setInBuildingLoc(guardCaptain.building, guardCaptain); mob.setInBuildingLoc(guardCaptain.building, guardCaptain);
//mob.setBindLoc(loc.add(mob.inBuildingLoc)); //mob.setBindLoc(loc.add(mob.inBuildingLoc));
mob.setLoc(guardCaptain.building.getLoc()); mob.setLoc(guardCaptain.building.getLoc());
mob.setLastRegion(AbstractWorldObject.GetRegionByWorldObject(mob)); mob.setLastRegion(AbstractWorldObject.GetRegionByWorldObject(mob));

4
src/engine/objects/Mob.java

@ -2002,8 +2002,12 @@ public class Mob extends AbstractIntelligenceAgent {
this.BehaviourType = this.getMobBase().fsm; this.BehaviourType = this.getMobBase().fsm;
} }
if(this.isPlayerGuard() && this.contract != null){ if(this.isPlayerGuard() && this.contract != null){
if(NPC.ISWallArcher(this.getContract().getContractID())){
this.BehaviourType = MobBehaviourType.GuardWallArcher;
} else {
this.BehaviourType = Enum.MobBehaviourType.GuardCaptain; this.BehaviourType = Enum.MobBehaviourType.GuardCaptain;
} }
}
} catch (Exception e) { } catch (Exception e) {
Logger.error(e.getMessage()); Logger.error(e.getMessage());
} }

Loading…
Cancel
Save