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 a210ddd349
commit 8b05cc921d

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();
}
}