This commit is contained in:
2024-03-02 18:49:54 -06:00
parent 9f58e211a8
commit d438440556
+5 -6
View File
@@ -149,16 +149,15 @@ public class Mob extends AbstractIntelligenceAgent {
this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class); this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class);
this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class); this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);
this.firstName = rs.getString("mob_name"); this.firstName = rs.getString("mob_name");
if (this.getMobBaseID() == 14104) {//guards
if (rs.getString("fsm").length() > 1) this.behaviourType = MobBehaviourType.Aggro;
} else if (rs.getString("fsm").length() > 1){
this.behaviourType = MobBehaviourType.valueOf(rs.getString("fsm")); this.behaviourType = MobBehaviourType.valueOf(rs.getString("fsm"));
}
this.currentID = this.dbID; this.currentID = this.dbID;
this.agentType = AIAgentType.MOBILE; this.agentType = AIAgentType.MOBILE;
if(this.getMobBaseID() == 14104) {//guards
this.behaviourType = MobBehaviourType.Aggro;
}
} catch (Exception e) { } catch (Exception e) {
Logger.error(e + " " + this.dbID); Logger.error(e + " " + this.dbID);
} }