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