diff --git a/game/story.coffee b/game/story.coffee index aceb87b..d0a3f2c 100644 --- a/game/story.coffee +++ b/game/story.coffee @@ -17,7 +17,7 @@ situation "living-room", if not $(".ways h2").is(':visible') $(".ways h2").fadeIn() update_ways(this.ways) - ways: ["bedroom", "kitchen"] + ways: ["bedroom", "kitchen", "balcony"] content: """ Ronald is standing in a dark room with a big #{textlink("window.", "window")} @@ -84,7 +84,7 @@ situation "bedroom", before: () -> update_ways(this.ways) title: "Bedroom" - ways: ["living-room", "kitchen"] + ways: ["living-room", "kitchen", "bathroom"] content: (character, system) -> return """ The bedroom is spacious. There's a wardrobe and a big bed. @@ -103,6 +103,25 @@ situation "kitchen", Bedroom here """ +situation "bathroom", + before: (character,system) -> + writemd(system,"Ronald doesn't want to search the bathroom. It's too private a room to enter.") + index = undum.game.situations["bedroom"].ways.indexOf("bathroom") + undum.game.situations["bedroom"].ways.splice(index, 1) + update_ways(undum.game.situations["bedroom"].ways) + return false + title: "Bathroom" + ways: ["bedroom"] + +situation "balcony", + before: () -> + update_ways(this.ways) + title: "Balcony" + ways: ["living-room"] + content: """ + A small balcony + """ + situation "box", before: () -> update_ways(this.ways)