- Minor restructuring/update in Puzzle code.

This commit is contained in:
Agetian
2017-08-21 09:44:45 +00:00
parent 99b80cccad
commit 5263edc3e2

View File

@@ -116,9 +116,11 @@ public class Puzzle extends GameState implements InventoryItem, Comparable<Puzzl
turnCorr = 1;
}
int turnLimit = turns + turnCorr;
// Default goal: win the game; lose on turn X
String trig = "Mode$ Phase | Phase$ Cleanup | TriggerZones$ Command | Static$ True | " +
"TurnCount$ " + (turns + turnCorr) + " | TriggerDescription$ At the beginning of your cleanup step, you lose the game.";
"TurnCount$ " + turnLimit + " | TriggerDescription$ At the beginning of your cleanup step on the specified turn, you lose the game.";
String eff = "DB$ LosesGame | Defined$ You";
switch(goal.toLowerCase()) {
@@ -127,7 +129,7 @@ public class Puzzle extends GameState implements InventoryItem, Comparable<Puzzl
break;
case "survive":
trig = "Mode$ Phase | Phase$ Upkeep | TriggerZones$ Command | Static$ True | " +
"TurnCount$ " + (turns + 1) + " | TriggerDescription$ At the beginning of your upkeep step, you win the game.";
"TurnCount$ " + (turnLimit + 1) + " | TriggerDescription$ At the beginning of the upkeep step on the specified turn, you win the game.";
eff = "DB$ WinsGame | Defined$ You";
break;
case "destroy specified permanents":