Browse Source

mob range min set to 6

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
ffd65b3641
  1. 5
      src/engine/mobileAI/MobAI.java

5
src/engine/mobileAI/MobAI.java

@ -741,7 +741,10 @@ public class MobAI {
return; return;
} }
} }
float rangeSquared = mob.getRange() * mob.getRange(); float range = mob.getRange();
if(range < 6)
range = 6;
float rangeSquared = range * range;
float distanceSquared = mob.getLoc().distanceSquared2D(mob.getCombatTarget().getLoc()); float distanceSquared = mob.getLoc().distanceSquared2D(mob.getCombatTarget().getLoc());
if(mob.isMoving() && distanceSquared < rangeSquared - 50) { if(mob.isMoving() && distanceSquared < rangeSquared - 50) {

Loading…
Cancel
Save