This commit is contained in:
2024-11-01 18:31:40 +09:00
parent 01cac84eef
commit 715244492f
8 changed files with 78 additions and 45 deletions

View File

@@ -644,41 +644,6 @@ if settings.startup['PHI-CT'].value then
end
end
if settings.startup['PHI-CT'].value and mods['space-age'] and (not settings.startup['PHI-CT-SPOIL'].value) then
local function spoil_handle(i)
i.spoil_ticks = nil
i.spoil_result = nil
i.spoil_to_trigger_result = nil
end
-- spoil_handle(data.raw['item']['iron-bacteria'])
-- spoil_handle(data.raw['item']['copper-bacteria'])
spoil_handle(data.raw['item']['nutrients'])
spoil_handle(data.raw['item']['captive-biter-spawner'])
spoil_handle(data.raw['item']['biter-egg'])
spoil_handle(data.raw['item']['pentapod-egg'])
spoil_handle(data.raw['capsule']['raw-fish'])
spoil_handle(data.raw['capsule']['yumako-mash'])
spoil_handle(data.raw['capsule']['yumako'])
spoil_handle(data.raw['capsule']['jelly'])
spoil_handle(data.raw['capsule']['jellynut'])
spoil_handle(data.raw['capsule']['bioflux'])
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 = {'phi-cl.combine', '', ''}
}})
table.insert(data.raw.technology['agriculture'].effects, {type='unlock-recipe', recipe='spoilage-from-nutrients'})
end
for _, v in pairs(data.raw['active-defense-equipment']) do
v.automatic = true
end