Update for issue #10

Removes slow and fast gather and retains gather for 1 tick.
This commit is contained in:
Josh 2018-01-04 17:49:02 +11:00 committed by GitHub
parent afbbce215e
commit 17359161fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,7 @@ public class CubotDrill extends CpuHardware {
public static final int DEFAULT_ADDRESS = 5;
private static final int DRILL_POLL = 1;
private static final int DRILL_GATHER_SLOW = 2;
private static final int DRILL_GATHER_FAST = 3;
private static final int DRILL_GATHER = 2; // simplified gather
private Cubot cubot;
@ -40,7 +39,7 @@ public class CubotDrill extends CpuHardware {
getCpu().getRegisterSet().getRegister("B").setValue(0);
} else if (a == DRILL_GATHER_SLOW || a == DRILL_GATHER_FAST) {
} else if (a == DRILL_GATHER) {
if (cubot.spendEnergy(1400)) {
if (cubot.getCurrentAction() == Action.IDLE) {