mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 23:54:53 +09:00
.
This commit is contained in:
1 parent
67a9f0edca
commit
dd0504a5dd
2 files changed
+3
-4
No files matched your search
@@ -716,9 +716,8 @@ local function handle_energy_interfaces()
|
||||
for s_index, prop in pairs(vlayer_data) do
|
||||
local storage = prop.storage
|
||||
local properties = prop.properties
|
||||
local production = properties.production
|
||||
local min_input = min(properties.input_limit, production * get_production_multiplier(s_index))
|
||||
storage.energy = storage.energy + floor(min_input * mega * update_tick_energy / 60)
|
||||
local production = properties.production * mega * update_tick_energy / 60
|
||||
storage.energy = storage.energy + floor(min(properties.input_limit, production * get_production_multiplier(s_index)))
|
||||
|
||||
local interfaces = prop.interfaces.energy
|
||||
prune_interfaces(interfaces)
|
||||
|
||||
@@ -348,7 +348,7 @@ function Elements.interface_dropdown.refresh(interface_dropdown, interfaces)
|
||||
local items = {}
|
||||
for index, interface in ipairs(interfaces) do
|
||||
local position = interface.position
|
||||
items[index] = format_string("[%d] %.1f, %.1f", index, position.x, position.y)
|
||||
items[index] = format_string("[%d] (%.1f, %.1f)", index, position.x, position.y)
|
||||
end
|
||||
interface_dropdown.items = items
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user