added Chase to mob ai state enum

This commit is contained in:
2023-03-14 13:32:41 -05:00
parent 584fde5579
commit dcac0634a8
3 changed files with 35 additions and 11 deletions
@@ -786,6 +786,12 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if (mob.isSiege()) {
return 300;
}
float DefaultRange = 8;
if(((Mob) this).getEquip().get(0) != null){
return ((Mob) this).getEquip().get(0).getItemBase().getRange();
} else if(((Mob) this).getEquip().get(1) != null){
return ((Mob) this).getEquip().get(1).getItemBase().getRange();
}
}
if (this.rangeHandOne > this.rangeHandTwo) {
return this.rangeHandOne;