mirror of
https://gitlab.com/Oreolek/black_phone.git
synced 2024-06-17 07:30:57 +03:00
Added a balcony and a "bathroom" to enter
This commit is contained in:
parent
f6b0aea03b
commit
92f5cc3cb7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue