mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-09 18:08:06 -06:00
added penalty for no power
This commit is contained in:
@@ -64,9 +64,9 @@ end
|
||||
|
||||
---@param station Station
|
||||
local function get_signals(station)
|
||||
if station.entity_comb1.valid then
|
||||
local signals = station.entity_comb1.get_merged_signals(defines.circuit_connector_id.combinator_input)
|
||||
return signals
|
||||
local comb = station.entity_comb1
|
||||
if comb.valid and (comb.status == defines.entity_status.working or comb.status == defines.entity_status.low_power) then
|
||||
return comb.get_merged_signals(defines.circuit_connector_id.combinator_input)
|
||||
else
|
||||
return nil
|
||||
end
|
||||
|
||||
@@ -43,9 +43,7 @@ function gui_opened(comb, player)
|
||||
end
|
||||
|
||||
local window = flib_gui.build(rootgui, {
|
||||
{type="frame", direction="vertical", ref={"main_window"}, name=COMBINATOR_NAME, actions={
|
||||
on_close = {"test"}
|
||||
}, children={
|
||||
{type="frame", direction="vertical", ref={"main_window"}, name=COMBINATOR_NAME, children={
|
||||
--title bar
|
||||
{type="flow", ref={"titlebar"}, children={
|
||||
{type="label", style="frame_title", caption={"cybersyn-gui.combinator-title"}, elem_mods={ignored_by_interaction=true}},
|
||||
|
||||
Reference in New Issue
Block a user