master
Nicolò Balzarotti 2023-01-05 13:09:43 +01:00
parent fb3614fb56
commit e91e64094d
1 changed files with 4 additions and 3 deletions

View File

@ -25,9 +25,9 @@ def load_phase(json):
return json.get(v, '#t')
return Phase(
json['name'], json['text'],
onexit=fallback('on_exit'),
onload=fallback('on_load'),
nextcond=fallback('exit_condition'))
onexit=fallback('onexit'),
onload=fallback('onload'),
nextcond=fallback('nextcond'))
def load_recipe(json):
return Recipe(
@ -259,6 +259,7 @@ class Phase():
# self.envdata = {}
def satisfied_p(self, env):
print('cond', self.nextcond)
return safe_eval(self.nextcond, env)
def exit(self, env):