mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-15 08:24:52 +09:00
per tick
This commit is contained in:
1 parent
628eb7904c
commit
071ed044ec
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user