Made rooms.dat file easier to read. Probably too late now, eh Victoria?

This commit is contained in:
Luca Carnegie
2019-05-27 20:48:45 -04:00
parent 1d0888f0df
commit 0acb8bd223
3 changed files with 43 additions and 4 deletions

View File

@@ -87,8 +87,10 @@ class Game {
// This puts the room we created (Without the exits in the
// masterMap)
masterRoomMap.put(roomName.toUpperCase().substring(10).trim().replaceAll(" ", "_"), room);
// Now we better set the exits.
if(roomScanner.hasNextLine()) {
roomScanner.nextLine();
}
}
for (String key : masterRoomMap.keySet()) {