mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Some more fixes for Puzzle mode
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user