make robots try to recharge at a bit less than max

This commit is contained in:
asiekierka 2015-03-09 21:19:02 +01:00
parent 499f4ca6a0
commit 511a8e1b31

View file

@ -45,7 +45,7 @@ public class AIRobotRecharge extends AIRobot {
@Override
public void update() {
if (robot.getEnergy() >= EntityRobotBase.MAX_ENERGY) {
if (robot.getEnergy() >= EntityRobotBase.MAX_ENERGY - 500) {
terminate();
}
}