mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-16 15:10:52 +03:00
canExit altering
canExit function now has an argument and executes in the context of exit room. As it should be.
This commit is contained in:
parent
8488ed83c8
commit
99559c9c0a
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "salet",
|
"name": "salet",
|
||||||
"version": "1.5.2",
|
"version": "1.5.3",
|
||||||
"description": "A general client-side framework for cybertext interactive fiction games.",
|
"description": "A general client-side framework for cybertext interactive fiction games.",
|
||||||
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
|
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
|
||||||
"homepage": "http://salet.oreolek.ru",
|
"homepage": "http://salet.oreolek.ru",
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SaletRoom
|
||||||
salet.rooms[f].canExit? and
|
salet.rooms[f].canExit? and
|
||||||
(
|
(
|
||||||
salet.rooms[f].canExit == false or
|
salet.rooms[f].canExit == false or
|
||||||
salet.rooms[f].canExit.fcall(this) == false
|
salet.rooms[f].canExit.fcall(salet.rooms[f], this) == false
|
||||||
) and
|
) and
|
||||||
force == false
|
force == false
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue