Skip to content

Commit d72a917

Browse files
committed
Testerbot checks for two action inventory config.
1 parent 08ecbd4 commit d72a917

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

blade-engine/src/com/bladecoder/engine/ui/TesterBot.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.bladecoder.engine.model.SpriteActor;
2929
import com.bladecoder.engine.model.Verb;
3030
import com.bladecoder.engine.model.World;
31+
import com.bladecoder.engine.util.Config;
3132
import com.bladecoder.engine.util.EngineLogger;
3233

3334
/**
@@ -54,8 +55,11 @@ public class TesterBot {
5455
private boolean waitWhenWalking = true;
5556

5657
private final ArrayList<String> excludeList = new ArrayList<String>();
58+
59+
private final boolean inventoryAction;
5760

5861
public TesterBot() {
62+
inventoryAction = !Config.getProperty(Config.SINGLE_ACTION_INVENTORY, false);
5963
}
6064

6165
public void update(float d) {
@@ -145,7 +149,7 @@ public void update(float d) {
145149
if (choosedVerb == 0) {
146150
EngineLogger.debug("<TESTERBOT> INVENTORY: " + invActor.getId() + "::" + Verb.LOOKAT_VERB);
147151
invActor.runVerb(Verb.LOOKAT_VERB);
148-
} else if (choosedVerb == 1) {
152+
} else if (choosedVerb == 1 && inventoryAction) {
149153
EngineLogger.debug("<TESTERBOT> INVENTORY: " + invActor.getId() + "::" + Verb.ACTION_VERB);
150154
invActor.runVerb(Verb.ACTION_VERB);
151155
} else { // 2 and 3

0 commit comments

Comments
 (0)