/usr/share/games/instead/stead/timer.lua is in instead-data 1.9.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | game.action = stead.hook(game.action, function(f, s, cmd, ...)
if cmd == 'user_timer' then
local r,v
if stead.here().timer then
r,v = stead.call(stead.here(), 'timer');
elseif s.timer then
r,v = stead.call(s, 'timer');
end
if r == nil and v == nil and stead.api_version < "1.3.5" then
return nil, true
end
return r,v
end
return f(s, cmd, ...);
end)
stead.module_init(function()
timer.callback = function(s)
return 'user_timer'
end
end)
-- vim:ts=4
|