mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-20 02:56:44 +00:00
Added error flag set and increased cost
This commit is contained in:
parent
b9d66dc30f
commit
95f4af1683
@ -70,9 +70,12 @@ public class CubotLeg extends CpuHardware implements JSONSerialisable {
|
||||
}
|
||||
} else if (a == LEGS_JUMP) {
|
||||
// jump up to 3 spaces, each space costs 200
|
||||
if (b < 4 && cubot.getMaxEnergy() >= b * 200) {
|
||||
if (b < 4 && cubot.getMaxEnergy() >= b * 300) {
|
||||
cubot.setJumpDistance(b);
|
||||
cubot.setCurrentAction(Action.JUMPING);
|
||||
status.setErrorFlag(false);
|
||||
} else {
|
||||
status.setErrorFlag(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user