From f7bb57eb256cee5469a762c33c42c9c743ce2fe3 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sat, 21 Jun 2025 01:04:49 +0900 Subject: [PATCH] . --- PHI-CL/data.lua | 70 ++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index f623530..8a01bd5 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -702,6 +702,41 @@ if settings.startup['PHI-MI'].value then data.raw['utility-constants'].default.default_pipeline_extent = settings.startup['PHI-MI-PIPE-EXTENT'].value end +if (settings.startup['PHI-SA'].value and (not settings.startup['PHI-SA-SPOIL'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP')) and mods['space-age'] then + local function spoil_handle(i) + i.spoil_ticks = nil + i.spoil_result = nil + i.spoil_to_trigger_result = nil + end + + for _, v in pairs({'nutrients', 'captive-biter-spawner', 'biter-egg', 'pentapod-egg'}) do + spoil_handle(data.raw['item'][v]) + end + + for _, v in pairs({'raw-fish', 'yumako-mash', 'yumako', 'jelly', 'jellynut', 'bioflux'}) do + spoil_handle(data.raw['capsule'][v]) + end + + spoil_handle(data.raw.tool['agricultural-science-pack']) + + data:extend({{ + type = 'recipe', + name = 'spoilage-from-nutrients', + energy_required = 1, + enabled = false, + ingredients = {{type = 'item', name = 'nutrients', amount = 1}}, + results = {{type = 'item', name = 'spoilage', amount = 10}}, + main_product = 'spoilage', + localised_name = {'item-name.spoilage'} + }}) + + table.insert(data.raw.technology['agriculture'].effects, {type = 'unlock-recipe', recipe = 'spoilage-from-nutrients'}) + + for _, v in pairs({'spoilables', 'spoilables-result', 'spoilables-research'}) do + data.raw['tips-and-tricks-item'][v] = nil + end +end + if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-SPOIL-FREEZE'].value and settings.startup['PHI-SA-SPOIL'].value and mods['space-age'] then local function spoil_handle(i) local item = table.deepcopy(i) @@ -758,41 +793,6 @@ if settings.startup['PHI-SA'].value and settings.startup['PHI-SA-SPOIL-FREEZE']. spoil_handle(data.raw.tool['agricultural-science-pack']) end -if (settings.startup['PHI-SA'].value and (not settings.startup['PHI-SA-SPOIL'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value == 'VP')) and mods['space-age'] then - local function spoil_handle(i) - i.spoil_ticks = nil - i.spoil_result = nil - i.spoil_to_trigger_result = nil - end - - for _, v in pairs({'nutrients', 'captive-biter-spawner', 'biter-egg', 'pentapod-egg'}) do - spoil_handle(data.raw['item'][v]) - end - - for _, v in pairs({'raw-fish', 'yumako-mash', 'yumako', 'jelly', 'jellynut', 'bioflux'}) do - spoil_handle(data.raw['capsule'][v]) - end - - spoil_handle(data.raw.tool['agricultural-science-pack']) - - data:extend({{ - type = 'recipe', - name = 'spoilage-from-nutrients', - energy_required = 1, - enabled = false, - ingredients = {{type = 'item', name = 'nutrients', amount = 1}}, - results = {{type = 'item', name = 'spoilage', amount = 10}}, - main_product = 'spoilage', - localised_name = {'item-name.spoilage'} - }}) - - table.insert(data.raw.technology['agriculture'].effects, {type = 'unlock-recipe', recipe = 'spoilage-from-nutrients'}) - - for _, v in pairs({'spoilables', 'spoilables-result', 'spoilables-research'}) do - data.raw['tips-and-tricks-item'][v] = nil - end -end - if mods['space-age'] and settings.startup['PHI-SA'].value and settings.startup['PHI-SA-QUALITY'].value then for _, v in pairs(data.raw.module) do if v.category and v.category == 'quality' then