add random 10-15 delay between patrolling for mobs

This commit is contained in:
FatBoy committed 2023-04-16 13:23:42 -05:00
1 parent ef74d1ae8c
commit db0e9d1847
2 files changed
+14 -9

No files matched your search

+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) {