imrpv mouse walk

v5stable
ondra 10 years ago
parent df3ec39a03
commit e2e073dae7
  1. 6
      src/mightypork/rogue/world/entity/impl/MonsterAi.java

@ -178,7 +178,7 @@ public class MonsterAi extends EntityModule implements EntityMoveListener {
sleeping = true; sleeping = true;
} }
if (!chasing && !sleeping && !entity.pos.isMoving() && Calc.rand.nextInt(6) == 0) { if (!chasing && !sleeping && !entity.pos.isMoving() && Calc.rand.nextInt(10) == 0) {
entity.pos.addStep(Sides.randomCardinal()); entity.pos.addStep(Sides.randomCardinal());
} }
} }
@ -349,13 +349,13 @@ public class MonsterAi extends EntityModule implements EntityMoveListener {
@DefaultImpl @DefaultImpl
protected boolean shouldRandomlyWake() protected boolean shouldRandomlyWake()
{ {
return Calc.rand.nextInt(3) == 0; return Calc.rand.nextInt(10) == 0;
} }
@DefaultImpl @DefaultImpl
protected boolean shouldRandomlyFallAsleep() protected boolean shouldRandomlyFallAsleep()
{ {
return Calc.rand.nextInt(5) == 0; return Calc.rand.nextInt(8) == 0;
} }
} }

Loading…
Cancel
Save