Browse Source

load mesh data and structure meshes

combat-2
FatBoy-DOTC 10 months ago
parent
commit
7f6fbd2bff
  1. 6
      src/engine/mobileAI/MobAI.java
  2. 13
      src/engine/objects/Mob.java

6
src/engine/mobileAI/MobAI.java

@ -939,16 +939,16 @@ public class MobAI {
//dont scan self. //dont scan self.
if (mob.equals(awoMob) || (mob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)) == true) if (mob.equals(awoMob))
continue; continue;
Mob aggroMob = (Mob) awoMob; Mob aggroMob = (Mob) awoMob;
//don't attack other guards //don't attack other guards
if (aggroMob.isGuard() == true)
if ((aggroMob.agentType.equals(Enum.AIAgentType.GUARDCAPTAIN)))
continue; continue;
//don't attack pets
if (aggroMob.agentType.equals(Enum.AIAgentType.PET)) if (aggroMob.agentType.equals(Enum.AIAgentType.PET))
continue; continue;

13
src/engine/objects/Mob.java

@ -1889,6 +1889,19 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
} }
} }
public Boolean isGuard(){
switch(this.behaviourType){
case GuardMinion:
case GuardCaptain:
case GuardWallArcher:
case HamletGuard:
case SimpleStandingGuard:
return true;
}
return false;
}
@Override @Override
public long getDelay(@NotNull TimeUnit unit) { public long getDelay(@NotNull TimeUnit unit) {
long timeRemaining = this.respawnTime - System.currentTimeMillis(); long timeRemaining = this.respawnTime - System.currentTimeMillis();

Loading…
Cancel
Save