diff --git a/utils.lua b/utils.lua --- a/utils.lua +++ b/utils.lua @@ -979,6 +979,29 @@ suit = function(tab) return obj(tab); end; +stead.list_str = function(self) + local v, vv + for i, o in stead.opairs(self) do + o = stead.ref(o); + if isObject(o) and not isDisabled(o) then + vv = stead.dispof(o) + vv = stead.xref(vv, o); + v = stead.par(stead.delim, v, vv); + end + end + return v; +end + +old_player_ways = stead.player_ways; + +stead.player_ways = function(s) + if type(here().ways_print) == 'function' then + return here().ways_print(here(), s); + else + return old_player_ways(s); + end; +end; + labyrinth = function(tab) local enter = tab.enter; local exit = tab.exit;