Hiding fix
This commit is contained in:
parent
518f3918d0
commit
0d1c0dc11b
|
@ -21,7 +21,7 @@ croom = (name, spec) ->
|
|||
</div>
|
||||
"""
|
||||
spec.canView ?= () ->
|
||||
return not salet.isVisited(@name)
|
||||
not salet.isVisited(spec.name)
|
||||
if spec.onexit
|
||||
spec.exit = () ->
|
||||
salet.view.write('<span class="shake">'+@onexit+'</span>')
|
||||
|
|
|
@ -65,7 +65,7 @@ croom "scholars",
|
|||
subtitle: "К вам подходит делегация местного университета…"
|
||||
color: "yellow"
|
||||
canView: () ->
|
||||
if salet.isVisited('sell') and salet.isVisited('bazaar') and salet.isVisited('guide') and not salet.isVisited(@name)
|
||||
if salet.isVisited('sell') and salet.isVisited('bazaar') and salet.isVisited('guide') and not salet.isVisited('scholars')
|
||||
return true
|
||||
false
|
||||
tags: ["start"]
|
||||
|
|
Loading…
Reference in a new issue