Made rooms.dat file easier to read. Probably too late now, eh Victoria?
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -166,9 +166,11 @@ class Room {
|
||||
*/
|
||||
public String exitString() {
|
||||
String returnString = "Exits:";
|
||||
String curr = "";
|
||||
Set keys = exits.keySet();
|
||||
for (Iterator iter = keys.iterator(); iter.hasNext();)
|
||||
returnString += " " + iter.next();
|
||||
curr = (String) iter.next();
|
||||
returnString += " " + curr.substring(0,1).toUpperCase() + curr.substring(1);
|
||||
return returnString;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user