Commit 53d61fbc authored by Alexander Yakovlev's avatar Alexander Yakovlev

Working state

parent 2d17ba0d
......@@ -92,6 +92,7 @@ class ImprovModel
setTagIfNotPresent: (tagName, value) ->
if @getTag(tagName) == undefined
@tags.push([tagName, value])
state = new ImprovModel
cunit = (name, spec) ->
spec.act = () ->
......@@ -101,6 +102,5 @@ cunit = (name, spec) ->
r.entering(r.name)
return '<em>'+@enact.fcall(this)+'</em>'
return unit(name, spec)
state = new ImprovModel
procgen = (tag) ->
return ImprovEngine.gen(tag, state)
......@@ -69,7 +69,7 @@ room "start",
return "alexey_final_dsc".l()
if salet.character.ferret
return "alexey_end".l()
return "alexey".l(Improv, state)
return "alexey".l(ImprovEngine, state)
enact: () ->
salet.goTo("alexey")
cunit "margo",
......@@ -79,7 +79,7 @@ room "start",
return "margo_final_dsc".l()
if salet.character.ferret
return "margo_end".l()
"margo".l(Improv, state)
"margo".l(ImprovEngine, state)
enact: () ->
salet.goTo("margo")
]
......@@ -171,7 +171,7 @@ dlg = (name) ->
return "meet_#{name}".l()
choices: "##{name}",
dsc: () ->
"#{name}_dsc".l(Improv, state)
"#{name}_dsc".l(ImprovEngine, state)
})
dlg_bye = (name) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment