Browse Source

guards

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
d438440556
  1. 11
      src/engine/objects/Mob.java

11
src/engine/objects/Mob.java

@ -149,16 +149,15 @@ public class Mob extends AbstractIntelligenceAgent { @@ -149,16 +149,15 @@ public class Mob extends AbstractIntelligenceAgent {
this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class);
this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);
this.firstName = rs.getString("mob_name");
if (rs.getString("fsm").length() > 1)
if (this.getMobBaseID() == 14104) {//guards
this.behaviourType = MobBehaviourType.Aggro;
} else if (rs.getString("fsm").length() > 1){
this.behaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
}
this.currentID = this.dbID;
this.agentType = AIAgentType.MOBILE;
if(this.getMobBaseID() == 14104) {//guards
this.behaviourType = MobBehaviourType.Aggro;
}
} catch (Exception e) {
Logger.error(e + " " + this.dbID);
}

Loading…
Cancel
Save