make robots try to recharge at a bit less than max
This commit is contained in:
parent
499f4ca6a0
commit
511a8e1b31
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue