- Some puzzle mode improvements. Added support for precasting simple (untargeted) spells at the beginning of the game via AIPrecast/HumanPrecast parameters. Added support for Flipped and Meld card states.

This commit is contained in:
Agetian
2017-08-07 04:49:24 +00:00
parent ac86cf19a0
commit 2bb8d8b52a
2 changed files with 53 additions and 7 deletions

View File

@@ -34,19 +34,19 @@ public class Puzzle extends GameState implements InventoryItem, Comparable {
for(String line : metadataLines) {
String[] split = line.split(":");
if ("Name".equalsIgnoreCase(split[0])) {
this.name = split[1];
this.name = split[1].trim();
} else if ("Goal".equalsIgnoreCase(split[0])) {
this.goal = split[1];
this.goal = split[1].trim();
} else if ("Url".equalsIgnoreCase(split[0])) {
this.url = split[1];
this.url = split[1].trim();
} else if ("Turns".equalsIgnoreCase(split[0])) {
this.turns = Integer.parseInt(split[1]);
} else if ("Difficulty".equalsIgnoreCase(split[0])) {
this.difficulty = split[1];
this.difficulty = split[1].trim();
} else if ("Description".equalsIgnoreCase(split[0])) {
this.description = split[1];
this.description = split[1].trim();
} else if ("Targets".equalsIgnoreCase(split[0])) {
this.targets = split[1];
this.targets = split[1].trim();
}
}
}