Browse Source

guard captain and wall archer spawn times hard set at 450 and 900 respectively

master
FatBoy-DOTC 2 years ago
parent
commit
c7e470166d
  1. 9
      src/engine/objects/Mob.java

9
src/engine/objects/Mob.java

@ -975,6 +975,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -975,6 +975,7 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.contract != null && NPC.ISWallArcher(this.contract)) {
this.BehaviourType = MobBehaviourType.GuardWallArcher;
this.isPlayerGuard = true;
this.spawnTime = 450;
}
if (isPet || isSiege || (isGuard && this.contract == null))
this.currentID = (--Mob.staticID);
@ -1979,10 +1980,14 @@ public class Mob extends AbstractIntelligenceAgent { @@ -1979,10 +1980,14 @@ public class Mob extends AbstractIntelligenceAgent {
this.BehaviourType = this.getMobBase().fsm;
if (this.isPlayerGuard() && this.contract != null)
if (NPC.ISWallArcher(this.getContract()))
if (NPC.ISWallArcher(this.getContract())) {
this.BehaviourType = MobBehaviourType.GuardWallArcher;
else
this.spawnTime = 450;
}
else {
this.BehaviourType = MobBehaviourType.GuardCaptain;
this.spawnTime = 900;
}
this.deathTime = 0;
} catch (Exception e) {

Loading…
Cancel
Save