- Show the puzzle description in a pop-up dialog window when the puzzle starts.

This commit is contained in:
Agetian
2017-07-27 04:29:28 +00:00
parent acfdf23c22
commit 26f50d109a
3 changed files with 5 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ public class Puzzle extends GameState implements InventoryItem, Comparable {
}
}
private String getGoalDescription() {
public String getGoalDescription() {
StringBuilder desc = new StringBuilder();
String name = this.name == null ? "Unnamed Puzzle" : this.name;
@@ -66,7 +66,7 @@ public class Puzzle extends GameState implements InventoryItem, Comparable {
if (this.description != null) {
desc.append("\n\n");
desc.append(this.description);
desc.append(this.description.replace("\\n", "\n"));
}
return desc.toString();