tune abm intervals to introduce jitter

This commit is contained in:
NatureFreshMilk 2019-03-21 13:10:10 +01:00
parent e44bf92960
commit 0af2749ac4

View File

@ -251,7 +251,7 @@ end
minetest.register_abm({ minetest.register_abm({
nodenames = {"technic:switching_station"}, nodenames = {"technic:switching_station"},
label = "Switching Station", -- allows the mtt profiler to profile this abm individually label = "Switching Station", -- allows the mtt profiler to profile this abm individually
interval = 1, interval = 1.1,
chance = 1, chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
if not technic.powerctrl_state then return end if not technic.powerctrl_state then return end
@ -524,7 +524,7 @@ end
minetest.register_abm({ minetest.register_abm({
label = "Machines: timeout check", label = "Machines: timeout check",
nodenames = {"group:technic_machine"}, nodenames = {"group:technic_machine"},
interval = 1, interval = 1.9,
chance = 3, chance = 3,
action = function(pos, node, active_object_count, active_object_count_wider) action = function(pos, node, active_object_count, active_object_count_wider)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)