Files
impostor/inc/system/system.day.lua
mr.three 7c33c3d587
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Merge pull request 'Add the office background.' (#25) from feature/task22_programming_office into master
Reviewed-on: #25
2026-03-03 19:34:35 +01:00

12 lines
284 B
Lua

local _day_increase_handlers = {}
function Day.increase()
Context.day_count = Context.day_count + 1
for _, handler in ipairs(_day_increase_handlers) do
handler()
end
end
function Day.register_handler(handler)
table.insert(_day_increase_handlers, handler)
end