mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user