mirror of
https://gitlab.com/Oreolek/black_phone.git
synced 2024-06-26 03:50:56 +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')
|
if not $(".ways h2").is(':visible')
|
||||||
$(".ways h2").fadeIn()
|
$(".ways h2").fadeIn()
|
||||||
update_ways(this.ways)
|
update_ways(this.ways)
|
||||||
ways: ["bedroom", "kitchen"]
|
ways: ["bedroom", "kitchen", "balcony"]
|
||||||
content: """
|
content: """
|
||||||
Ronald is standing in a dark room with a big #{textlink("window.", "window")}
|
Ronald is standing in a dark room with a big #{textlink("window.", "window")}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ situation "bedroom",
|
||||||
before: () ->
|
before: () ->
|
||||||
update_ways(this.ways)
|
update_ways(this.ways)
|
||||||
title: "Bedroom"
|
title: "Bedroom"
|
||||||
ways: ["living-room", "kitchen"]
|
ways: ["living-room", "kitchen", "bathroom"]
|
||||||
content: (character, system) ->
|
content: (character, system) ->
|
||||||
return """
|
return """
|
||||||
The bedroom is spacious. There's a wardrobe and a big bed.
|
The bedroom is spacious. There's a wardrobe and a big bed.
|
||||||
|
@ -103,6 +103,25 @@ situation "kitchen",
|
||||||
Bedroom here
|
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",
|
situation "box",
|
||||||
before: () ->
|
before: () ->
|
||||||
update_ways(this.ways)
|
update_ways(this.ways)
|
||||||
|
|
Loading…
Reference in a new issue