mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-26 03:50:49 +03:00
fcall fix
This commit is contained in:
parent
70d8f80c5d
commit
b5fc0944bc
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salet",
|
||||
"version": "1.6.4",
|
||||
"version": "1.6.5",
|
||||
"description": "A general client-side framework for cybertext interactive fiction games.",
|
||||
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
|
||||
"homepage": "http://salet.oreolek.ru",
|
||||
|
|
|
@ -6,7 +6,7 @@ There is only one instance of this class.
|
|||
###
|
||||
class Salet
|
||||
constructor: (spec) ->
|
||||
@version = "1.6.4"
|
||||
@version = "1.6.5"
|
||||
@character = new Character
|
||||
|
||||
# REDEFINE THIS IN YOUR GAME
|
||||
|
|
|
@ -280,7 +280,7 @@ class SaletView
|
|||
content = ""
|
||||
if ways then for way in ways
|
||||
if salet.rooms[way]?
|
||||
title = salet.rooms[way].title.fcall(name)
|
||||
title = salet.rooms[way].title.fcall(this, name)
|
||||
content += "<li class='nav-item'><a class='nav-link' href='#{way}'>#{title}</a></li>"
|
||||
@replace(content, "#ways")
|
||||
@showBlock(".ways #ways_hint")
|
||||
|
|
Loading…
Reference in a new issue