13 lines
229 B
Lua
13 lines
229 B
Lua
game.action = stead.hook(game.action, function(f, s, cmd, ...)
|
|
if cmd == 'user_timer' then
|
|
return call(game, 'timer');
|
|
end
|
|
return f(cmd, unpack(arg));
|
|
end)
|
|
|
|
timer.callback = function(s)
|
|
return 'user_timer'
|
|
end
|
|
|
|
-- vim:ts=4
|