mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-19 15:23:12 +09:00
M
This commit is contained in:
1 parent
ec17ccdd06
commit
f86bd5731d
1 file changed
+2
-2
@@ -707,8 +707,8 @@ local function handle_energy_interfaces()
|
|||||||
for s_index, prop in pairs(vlayer_data) do
|
for s_index, prop in pairs(vlayer_data) do
|
||||||
local storage = prop.storage
|
local storage = prop.storage
|
||||||
local properties = prop.properties
|
local properties = prop.properties
|
||||||
local production = properties.production * mega * (update_tick_energy / 60)
|
local production = properties.production * (update_tick_energy / 60)
|
||||||
storage.energy = storage.energy + min(properties.input_limit, floor(production * get_production_multiplier(s_index)))
|
storage.energy = storage.energy + min(properties.input_limit, floor(production * get_production_multiplier(s_index))) * mega
|
||||||
|
|
||||||
local interfaces = prop.interfaces.energy
|
local interfaces = prop.interfaces.energy
|
||||||
prune_interfaces(interfaces)
|
prune_interfaces(interfaces)
|
||||||
|
|||||||
Reference in new issue
Block a user