This commit is contained in:
jslightham
2019-06-01 01:04:16 -04:00
parent 8083d3a848
commit 0ad9098d2e
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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
@@ -48,7 +48,7 @@ Room Description: You are now in Lady Pellatt's Bedroom. A four-poster bed with
New Room Description:
Locked: false
Boarded: false
Items:Robes
Items: Robes
Riddler:
Exit Rooms: N-Sitting Area, S-Guest Bedroom, E-Bulb Room

View File

@@ -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 + "!");