0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-26 03:50:49 +03:00

Room name argument for SaletRoom.optionText

This commit is contained in:
Alexander Yakovlev 2016-12-10 12:29:39 +07:00
parent 08b9e4bf0e
commit 1cf8b33621
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "salet",
"version": "1.6.6",
"version": "1.6.7",
"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",

View file

@ -167,7 +167,7 @@ class SaletView
if (room == currentRoom)
continue
optionText = room.optionText.fcall(currentRoom)
optionText = room.optionText.fcall(room, currentRoom.name)
if (!optionText)
optionText = "choice".l({number:i+1})
$option = $("<li>")