fixed bugs

This commit is contained in:
jslightham
2019-06-01 00:49:31 -04:00
parent c8642adc5c
commit 33586d7f35
6 changed files with 21 additions and 13 deletions

View File

@@ -462,7 +462,7 @@ class Game {
System.out.println("I've got to go find Mr. Pellatt now. Good luck with your escape!");
currentRoom.removeRiddler();
} else {
System.out.println("Sorry, you can't carry any more, but a " + prize + " has been added to your room.");
System.out.println("Sorry, you can't carry any more, but a " + prize.getName() + " has been added to your room.");
currentRoom.addItem(prize);
}
} else {