This commit is contained in:
2024-11-15 22:58:10 +09:00
parent 2b173a38f2
commit 6e6f4f4efa
2 changed files with 59 additions and 56 deletions

View File

@@ -377,51 +377,52 @@ local items = {
['space-science-pack'] = true
},
['technology'] = {
'planet-discovery-vulcanus',
'planet-discovery-gleba',
'planet-discovery-fulgora',
'planet-discovery-aquilo',
'space-platform',
'space-platform-thruster',
'calcite-processing',
'tungsten-carbide',
'tungsten-steel',
'metallurgic-science-pack',
'yumako',
'jellynut',
'bioflux',
'artificial-soil',
'overgrowth-soil',
'bacteria-cultivation',
'bioflux-processing',
'agricultural-science-pack',
'tree-seeding',
'captivity',
'biter-egg-handling',
'carbon-fiber',
'fish-breeding',
'holmium-processing',
'electromagnetic-plant',
'electromagnetic-science-pack',
'lightning-collector',
'rail-support-foundations',
'lithium-processing',
'asteroid-reprocessing',
'advanced-asteroid-processing',
'quantum-processor',
'cryogenic-science-pack',
'captive-biter-spawner',
'promethium-science-pack',
'foundation',
'asteroid-productivity',
'scrap-recycling-productivity',
'recycling',
'heating-tower',
'agriculture',
'foundry',
'cryogenic-plant',
'biolab',
'biochamber',
['planet-discovery-vulcanus'] = true,
['planet-discovery-gleba'] = true,
['planet-discovery-fulgora'] = true,
['planet-discovery-aquilo'] = true,
['space-platform'] = true,
['space-platform-thruster'] = true,
['calcite-processing'] = true,
['tungsten-carbide'] = true,
['tungsten-steel'] = true,
['metallurgic-science-pack'] = true,
['yumako'] = true,
['jellynut'] = true,
['bioflux'] = true,
['artificial-soil'] = true,
['overgrowth-soil'] = true,
['bacteria-cultivation'] = true,
['bioflux-processing'] = true,
['agricultural-science-pack'] = true,
['tree-seeding'] = true,
['captivity'] = true,
['biter-egg-handling'] = true,
['carbon-fiber'] = true,
['fish-breeding'] = true,
['calcite-processing'] = true,
['holmium-processing'] = true,
['electromagnetic-plant'] = true,
['electromagnetic-science-pack'] = true,
['lightning-collector'] = true,
['rail-support-foundations'] = true,
['lithium-processing'] = true,
['asteroid-reprocessing'] = true,
['advanced-asteroid-processing'] = true,
['quantum-processor'] = true,
['cryogenic-science-pack'] = true,
['captive-biter-spawner'] = true,
['promethium-science-pack'] = true,
['foundation'] = true,
['asteroid-productivity'] = true,
['scrap-recycling-productivity'] = true,
['recycling'] = true,
['heating-tower'] = true,
['agriculture'] = true,
['foundry'] = true,
['cryogenic-plant'] = true,
['biolab'] = true,
['biochamber'] = true
},
['recipe'] = {
['agricultural-science-pack'] = true,

View File

@@ -537,6 +537,8 @@ if settings.startup['PHI-SA'].value then
data.raw.technology['efficiency-module-3'].unit.ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}, {'chemical-science-pack', 1}}
data.raw.technology['kovarex-enrichment-process'].prerequisites = {'uranium-processing'}
data.raw.technology['fusion-reactor'].prerequisites = {'nuclear-power', 'space-science-pack'}
table.insert(data.raw.technology['fusion-reactor'].effects, {type='unlock-recipe', recipe='fluoroketone'})
table.insert(data.raw.technology['fusion-reactor'].effects, {type='unlock-recipe', recipe='fluoroketone-cooling'})
data.raw.technology['fusion-reactor-equipment'].prerequisites = {'fission-reactor-equipment', 'fusion-reactor'}
data.raw.technology['artillery'].prerequisites = {'military-4', 'radar'}
data.raw.technology['battery-mk3-equipment'].prerequisites = {'battery-mk2-equipment'}
@@ -578,6 +580,11 @@ if settings.startup['PHI-SA'].value then
table.insert(v.unit.ingredients, {'space-science-pack', 1})
end
end
if items['space-age']['technology'][v.name] then
data.raw.technology[v.name].hidden = true
data.raw.technology[v.name].hidden_in_factoriopedia = true
end
end
table.insert(data.raw.technology['kovarex-enrichment-process'].unit.ingredients, {'production-science-pack', 1})
@@ -787,22 +794,17 @@ if settings.startup['PHI-SA'].value then
data.raw['complete-objective-achievement']['express-delivery'] = nil
for _, v in pairs(items['item']) do
if v.enabled and v.mod and v.mod == 'space-age' then
if not data.raw.technology[v.tech] or data.raw.technology[v.tech].hidden then
if v.enabled and v.mod and (v.mod == 'space-age' or v.mod == 'quality') then
if (not data.raw.technology[v.tech]) or data.raw.technology[v.tech].hidden then
v.enabled = false
end
end
end
for _, v in pairs(items['space-age']['technology']) do
data.raw.technology[v].hidden = true
data.raw.technology[v].hidden_in_factoriopedia = true
end
for k, v in pairs(data.raw.recipe) do
if items['space-age']['recipe'][k] then
data.raw.recipe[k].hidden = true
data.raw.recipe[k].hidden_in_factoriopedia = true
for _, v in pairs(data.raw.recipe) do
if items['space-age']['recipe'][v.name] then
data.raw.recipe[v.name].hidden = true
data.raw.recipe[v.name].hidden_in_factoriopedia = true
end
v.surface_conditions = nil