From 071ed044ec861551306acb0056de3917749b62f9 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 11 Nov 2026 00:33:12 +0900 Subject: [PATCH] per tick --- exp_scenario/module/control/vlayer.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index 195b9729..739a1855 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -137,8 +137,9 @@ for _, name in pairs(items.allowed_categories["storage"]) do local i_eesp = item.electric_energy_source_prototype for l, n in pairs(quality_level_to_name) do - allowed_items[item_name]["input_limit"][l] = i_eesp and i_eesp.get_input_flow_limit(n) / mega or 0 -- W -> MW - allowed_items[item_name]["output_limit"][l] = i_eesp and i_eesp.get_output_flow_limit(n) / mega or 0 -- W -> MW + -- the number is per tick + allowed_items[item_name]["input_limit"][l] = i_eesp and i_eesp.get_input_flow_limit(n) * 60 / mega or 0 -- W -> MW + allowed_items[item_name]["output_limit"][l] = i_eesp and i_eesp.get_output_flow_limit(n) * 60 / mega or 0 -- W -> MW allowed_items[item_name]["capacity"][l] = i_eesp and i_eesp.buffer_capacity * prototypes.quality[n].accumulator_capacity_multiplier / mega or 0 -- J -> MJ end end