Modify GUI tick rate to 10s from 1s and refactor some of the stations code with improvements from inventory

This commit is contained in:
Will Berry
2023-03-06 13:02:50 -05:00
parent af5f606cbb
commit 732d63d65b
2 changed files with 48 additions and 57 deletions
+2 -2
View File
@@ -903,7 +903,7 @@ local function main()
end
local MANAGER_ENABLED = true
local MANAGER_ENABLED = true --convert to mod setting?
script.on_init(function()
local setting = settings.global["cybersyn-invert-sign"]
@@ -933,7 +933,7 @@ local function main()
script.on_event(defines.events.on_player_removed, manager.on_player_removed)
script.on_event(defines.events.on_player_created, manager.on_player_created)
script.on_event(defines.events.on_lua_shortcut, manager.on_lua_shortcut)
script.on_nth_tick(60, function()
script.on_nth_tick(600, function() --TODO: tick value needs to be converted to mod setting
manager.tick(global)
end)
end