mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -286,8 +286,7 @@ if settings.startup['PHI-MI'].value or (settings.startup['PHI-GM'].value and set
|
|||||||
end
|
end
|
||||||
|
|
||||||
circuit_oc = circuit_oc.sections[1]
|
circuit_oc = circuit_oc.sections[1]
|
||||||
circuit_oc.set_slot(1, {value = {type = 'virtual', name = 'signal-RA', quality = 'normal'}, min = ((event.element.parent.parent['read_type_table']['read_type_technology_dropdown'].selected_index == 2) and 1 or 0)})
|
circuit_oc.set_slot(1, {value = {type = 'virtual', name = 'signal-SA', quality = 'normal'}, min = ((event.element.parent.parent['read_type_table']['read_type_technology_dropdown'].selected_index == 2) and 1 or 0) + ((event.element.parent.parent['set_type_table']['set_type_technology_dropdown'].selected_index == 2) and 2 or 0)})
|
||||||
-- circuit_oc.set_slot(1, {value = {type = 'virtual', name = 'signal-RA', quality = 'normal'}, min = ((event.element.parent.parent['read_type_table']['read_type_technology_dropdown'].selected_index == 2) and 1 or 0) + ((event.element.parent.parent['set_type_table']['set_type_technology_dropdown'].selected_index == 2) and 2 or 0)})
|
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
@@ -348,7 +347,10 @@ script.on_nth_tick(1800, function(_)
|
|||||||
for _, s in pairs(game.surfaces) do
|
for _, s in pairs(game.surfaces) do
|
||||||
local c = s.find_entities_filtered{type='constant-combinator', name='super-combinator'}
|
local c = s.find_entities_filtered{type='constant-combinator', name='super-combinator'}
|
||||||
|
|
||||||
if c and #c > 0 then
|
if not (c or #c == 0) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
for _, sc in pairs(c) do
|
for _, sc in pairs(c) do
|
||||||
local circuit_oc = sc.get_or_create_control_behavior()
|
local circuit_oc = sc.get_or_create_control_behavior()
|
||||||
|
|
||||||
@@ -357,9 +359,15 @@ script.on_nth_tick(1800, function(_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
circuit_oc = circuit_oc.sections[1]
|
circuit_oc = circuit_oc.sections[1]
|
||||||
|
local cs1 = circuit_oc.get_slot(1)
|
||||||
|
|
||||||
|
if not (cs1 or (cs1.value and cs1.value.name and cs1.value.name == 'signal-SA')) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local val = circuit_oc.get_slot(1).min or 0
|
local val = circuit_oc.get_slot(1).min or 0
|
||||||
|
|
||||||
if (val % 2) >= 1 then
|
if val == 1 or val == 3 then
|
||||||
-- read_type_technology_dropdown
|
-- read_type_technology_dropdown
|
||||||
local n = 11
|
local n = 11
|
||||||
|
|
||||||
@@ -377,7 +385,7 @@ script.on_nth_tick(1800, function(_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
if (val % 4) >= 2 then
|
if val == 2 or val == 3 then
|
||||||
-- incomplete
|
-- incomplete
|
||||||
-- set_type_technology_dropdown
|
-- set_type_technology_dropdown
|
||||||
|
|
||||||
@@ -408,5 +416,4 @@ script.on_nth_tick(1800, function(_)
|
|||||||
-- game.forces['player'].research_queue = storage.phi_cl.combinator.research_queue_set
|
-- game.forces['player'].research_queue = storage.phi_cl.combinator.research_queue_set
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user