Some more fixes for Puzzle mode

This commit is contained in:
Sol
2017-05-09 02:04:08 +00:00
parent dcd08f0954
commit 546b9ac214
6 changed files with 51 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ public class Puzzle extends GameState implements InventoryItem {
String name;
String goal;
String url;
String difficulty;
int turns;
public Puzzle(Map<String, List<String>> puzzleLines) {
@@ -39,6 +40,8 @@ public class Puzzle extends GameState implements InventoryItem {
this.url = split[1];
} else if ("Turns".equalsIgnoreCase(split[0])) {
this.turns = Integer.parseInt(split[1]);
} else if ("Difficulty".equalsIgnoreCase(split[0])) {
this.difficulty = split[1];
}
}
}