From db63fed89279bbb47b85a74f4ff2d4c146f890fa Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 1 Nov 2024 18:41:50 +0900 Subject: [PATCH] . --- PHI-CL/data.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index c0c5c7c..6bcd926 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -375,6 +375,10 @@ if settings.startup['PHI-CT'].value then end if settings.startup['PHI-CT-UTILITY'].value then + for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do + data.raw[t][t].energy_source.usage_priority = 'primary-input' + end + local item = table.deepcopy(data.raw['item']['steel-chest']) item.name = 'trash-chest' item.place_result = item.name @@ -624,12 +628,6 @@ if settings.startup['PHI-CT'].value then table.insert(data.raw.technology['logistics-3'].effects, {type='unlock-recipe', recipe='express-loader'}) end - if settings.startup['PHI-CT-UTILITY'].value then - for _, t in pairs({'arithmetic-combinator', 'decider-combinator', 'programmable-speaker', 'selector-combinator'}) do - data.raw[t][t].energy_source.usage_priority = 'primary-input' - end - end - data.raw['utility-constants'].default.rocket_lift_weight = settings.startup['PHI-CT-ROCKET-CAPACITY'].value * 100000 data.raw['utility-constants'].default.default_item_weight = settings.startup['PHI-CT-CARGO-WEIGHT'].value