Changed riddler execution

This commit is contained in:
Luca Carnegie
2019-05-29 23:17:29 -04:00
parent d052273a99
commit 2fd7b3ed6f
5 changed files with 6 additions and 4 deletions

View File

@@ -27,8 +27,8 @@ class Room {
private String description;
private HashMap<String, Room> exits; // stores exits of this room.
private ArrayList<Item> items;
private Riddler riddler;
private boolean locked;
Riddler riddler; //needs to altered outside of the class so that riddler can be set to null.
private boolean locked; // Otherwise you can repeatedly solve the riddle and get unlimited items
private boolean boarded;
/**