add random 10-15 delay between patrolling for mobs

This commit is contained in:
2023-04-16 13:23:42 -05:00
parent ef74d1ae8c
commit db0e9d1847
2 changed files with 14 additions and 9 deletions
+5 -3
View File
@@ -299,9 +299,11 @@ public class Mob extends AbstractIntelligenceAgent {
this.equipmentSetID = this.contract.getEquipmentSet();
this.nameOverride = rs.getString("mob_name");
if(rs.getString("fsm").length() > 1) {
this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm"));
} else{
try {
if (rs.getString("fsm").length() > 1) {
this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm"));
}
}catch(Exception ex) {
this.BehaviourType = MobileFSM.MobBehaviourType.None;
}
} catch (Exception e) {