final
This commit is contained in:
@@ -11,5 +11,5 @@ Loot: Crowbar
|
||||
Enemy Name: DesLauriers The Dog
|
||||
Description: The cookie monster
|
||||
Starting Room: Kitchen
|
||||
Damage Given: 40
|
||||
Damage Given: 30
|
||||
Loot: Base
|
||||
@@ -4,7 +4,7 @@ New Room Description: You are in a circular room. The windows to the east are c
|
||||
Locked: false
|
||||
Boarded: false
|
||||
Items: Lightbulb, Candlestick
|
||||
Riddler: "Hello there. My name is Kevin and I am Sir Pellatt's butler. I understand that my master<comma><br>Sir Pellatt has wrongfully imprisoned you. If you answer my riddle<comma> I can give you something to<br>help you with your escape - nothing comes for free you know!", "What has a head<comma> a tail<comma> is brown<comma> and has no legs?", "A penny", Lockpick
|
||||
Riddler: "Hello there. My name is Kevin and I am Sir Pellatt's butler. I understand that my master<comma><br>Sir Pellatt has wrongfully imprisoned you. If you answer my riddle<comma> I can give you something to<br>help you with your escape - nothing comes for free you know!", "What has a head<comma> a tail<comma> is brown<comma> and has no legs?", "penny", Lockpick
|
||||
Exit Rooms: W-Apple Hallway
|
||||
|
||||
Room name: Apple Hallway
|
||||
|
||||
@@ -456,7 +456,7 @@ class Game {
|
||||
System.out.println(message + "\n\nHere's my riddle: " + riddle);
|
||||
System.out.print("Enter your guess here: ");
|
||||
String guess = rScanner.nextLine();
|
||||
if (guess.toLowerCase().equals(answer.toLowerCase())) {
|
||||
if (guess.toLowerCase().indexOf(answer.toLowerCase()) >= 0) {
|
||||
Item prize = currentRoom.getRiddler().getPrize();
|
||||
String prizeName = prize.getName();
|
||||
System.out.println("Congratulations! You solved my riddle! As your reward, you get a " + prizeName + "!");
|
||||
|
||||
Reference in New Issue
Block a user