mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -377,51 +377,52 @@ local items = {
|
|||||||
['space-science-pack'] = true
|
['space-science-pack'] = true
|
||||||
},
|
},
|
||||||
['technology'] = {
|
['technology'] = {
|
||||||
'planet-discovery-vulcanus',
|
['planet-discovery-vulcanus'] = true,
|
||||||
'planet-discovery-gleba',
|
['planet-discovery-gleba'] = true,
|
||||||
'planet-discovery-fulgora',
|
['planet-discovery-fulgora'] = true,
|
||||||
'planet-discovery-aquilo',
|
['planet-discovery-aquilo'] = true,
|
||||||
'space-platform',
|
['space-platform'] = true,
|
||||||
'space-platform-thruster',
|
['space-platform-thruster'] = true,
|
||||||
'calcite-processing',
|
['calcite-processing'] = true,
|
||||||
'tungsten-carbide',
|
['tungsten-carbide'] = true,
|
||||||
'tungsten-steel',
|
['tungsten-steel'] = true,
|
||||||
'metallurgic-science-pack',
|
['metallurgic-science-pack'] = true,
|
||||||
'yumako',
|
['yumako'] = true,
|
||||||
'jellynut',
|
['jellynut'] = true,
|
||||||
'bioflux',
|
['bioflux'] = true,
|
||||||
'artificial-soil',
|
['artificial-soil'] = true,
|
||||||
'overgrowth-soil',
|
['overgrowth-soil'] = true,
|
||||||
'bacteria-cultivation',
|
['bacteria-cultivation'] = true,
|
||||||
'bioflux-processing',
|
['bioflux-processing'] = true,
|
||||||
'agricultural-science-pack',
|
['agricultural-science-pack'] = true,
|
||||||
'tree-seeding',
|
['tree-seeding'] = true,
|
||||||
'captivity',
|
['captivity'] = true,
|
||||||
'biter-egg-handling',
|
['biter-egg-handling'] = true,
|
||||||
'carbon-fiber',
|
['carbon-fiber'] = true,
|
||||||
'fish-breeding',
|
['fish-breeding'] = true,
|
||||||
'holmium-processing',
|
['calcite-processing'] = true,
|
||||||
'electromagnetic-plant',
|
['holmium-processing'] = true,
|
||||||
'electromagnetic-science-pack',
|
['electromagnetic-plant'] = true,
|
||||||
'lightning-collector',
|
['electromagnetic-science-pack'] = true,
|
||||||
'rail-support-foundations',
|
['lightning-collector'] = true,
|
||||||
'lithium-processing',
|
['rail-support-foundations'] = true,
|
||||||
'asteroid-reprocessing',
|
['lithium-processing'] = true,
|
||||||
'advanced-asteroid-processing',
|
['asteroid-reprocessing'] = true,
|
||||||
'quantum-processor',
|
['advanced-asteroid-processing'] = true,
|
||||||
'cryogenic-science-pack',
|
['quantum-processor'] = true,
|
||||||
'captive-biter-spawner',
|
['cryogenic-science-pack'] = true,
|
||||||
'promethium-science-pack',
|
['captive-biter-spawner'] = true,
|
||||||
'foundation',
|
['promethium-science-pack'] = true,
|
||||||
'asteroid-productivity',
|
['foundation'] = true,
|
||||||
'scrap-recycling-productivity',
|
['asteroid-productivity'] = true,
|
||||||
'recycling',
|
['scrap-recycling-productivity'] = true,
|
||||||
'heating-tower',
|
['recycling'] = true,
|
||||||
'agriculture',
|
['heating-tower'] = true,
|
||||||
'foundry',
|
['agriculture'] = true,
|
||||||
'cryogenic-plant',
|
['foundry'] = true,
|
||||||
'biolab',
|
['cryogenic-plant'] = true,
|
||||||
'biochamber',
|
['biolab'] = true,
|
||||||
|
['biochamber'] = true
|
||||||
},
|
},
|
||||||
['recipe'] = {
|
['recipe'] = {
|
||||||
['agricultural-science-pack'] = true,
|
['agricultural-science-pack'] = true,
|
||||||
|
|||||||
@@ -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['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['kovarex-enrichment-process'].prerequisites = {'uranium-processing'}
|
||||||
data.raw.technology['fusion-reactor'].prerequisites = {'nuclear-power', 'space-science-pack'}
|
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['fusion-reactor-equipment'].prerequisites = {'fission-reactor-equipment', 'fusion-reactor'}
|
||||||
data.raw.technology['artillery'].prerequisites = {'military-4', 'radar'}
|
data.raw.technology['artillery'].prerequisites = {'military-4', 'radar'}
|
||||||
data.raw.technology['battery-mk3-equipment'].prerequisites = {'battery-mk2-equipment'}
|
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})
|
table.insert(v.unit.ingredients, {'space-science-pack', 1})
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
table.insert(data.raw.technology['kovarex-enrichment-process'].unit.ingredients, {'production-science-pack', 1})
|
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
|
data.raw['complete-objective-achievement']['express-delivery'] = nil
|
||||||
|
|
||||||
for _, v in pairs(items['item']) do
|
for _, v in pairs(items['item']) do
|
||||||
if v.enabled and v.mod and v.mod == 'space-age' 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
|
if (not data.raw.technology[v.tech]) or data.raw.technology[v.tech].hidden then
|
||||||
v.enabled = false
|
v.enabled = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(items['space-age']['technology']) do
|
for _, v in pairs(data.raw.recipe) do
|
||||||
data.raw.technology[v].hidden = true
|
if items['space-age']['recipe'][v.name] then
|
||||||
data.raw.technology[v].hidden_in_factoriopedia = true
|
data.raw.recipe[v.name].hidden = true
|
||||||
end
|
data.raw.recipe[v.name].hidden_in_factoriopedia = true
|
||||||
|
|
||||||
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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
v.surface_conditions = nil
|
v.surface_conditions = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user