From 1191579de102397be0a20c79e5b720487aedff03 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 20 Oct 2025 18:55:26 +0900 Subject: [PATCH] . --- PHI-CL/control.lua | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/PHI-CL/control.lua b/PHI-CL/control.lua index 2aa3a6f..113471f 100644 --- a/PHI-CL/control.lua +++ b/PHI-CL/control.lua @@ -422,37 +422,6 @@ local function handle_research_queue(entity, combinator) end end -local function handle_valve_value(entity, combinator) - local combinator_slot = combinator.get_slot(2) - - if not (combinator_slot or (combinator_slot.value and combinator_slot.value.name and combinator_slot.value.name == 'signal-VA')) then - combinator.set_slot(2, {value = {type = 'virtual', name = 'signal-VA', quality = 'normal'}, min = 0}) - return - end - - local combinator_slot_value = combinator_slot.min or 0 - - if (combinator_slot_value >= 0 and combinator_slot_value < 101) then - -- every item in front of it? - local v = entity.surface.find_entities_filtered{type='valve', position=entity.position, radius=1} - - if #v == 0 then - return - end - - for _, valve in pairs(v) do - if valve.valve_threshold_override then - if combinator_slot_value == 0 then - valve.valve_threshold_override = nil - - else - valve.valve_threshold_override = combinator_slot_value / 100 - end - end - end - end -end - script.on_nth_tick(10, function(_) local head = #storage.phi_cl.combinator.combinator_list local max_remove = math.floor(head / 100) + 1