added Chase to mob ai state enum

This commit is contained in:
FatBoy committed 2023-03-14 13:32:41 -05:00
1 parent 584fde5579
commit dcac0634a8
3 files changed
+35 -11

No files matched your search

@@ -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;