mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -518,97 +518,117 @@ local items = {
|
|||||||
['visit-aquilo'] = 'change-surface-achievement'
|
['visit-aquilo'] = 'change-surface-achievement'
|
||||||
},
|
},
|
||||||
['recipe'] = {
|
['recipe'] = {
|
||||||
|
-- QUALITY 0
|
||||||
['recycler'] = true,
|
['recycler'] = true,
|
||||||
|
-- SPACE_AGE 0
|
||||||
['lightning-collector'] = true,
|
['lightning-collector'] = true,
|
||||||
['lightning-rod'] = true,
|
['lightning-rod'] = true,
|
||||||
['agricultural-science-pack'] = true,
|
['agricultural-science-pack'] = true,
|
||||||
['cryogenic-science-pack'] = true,
|
['cryogenic-science-pack'] = true,
|
||||||
['electromagnetic-science-pack'] = true,
|
['electromagnetic-science-pack'] = true,
|
||||||
|
-- SPACE_AGE 5
|
||||||
['metallurgic-science-pack'] = true,
|
['metallurgic-science-pack'] = true,
|
||||||
['promethium-science-pack'] = true,
|
['promethium-science-pack'] = true,
|
||||||
['space-science-pack'] = true,
|
['space-science-pack'] = true,
|
||||||
['burnt-spoilage'] = true,
|
['burnt-spoilage'] = true,
|
||||||
['fish-breeding'] = true,
|
['fish-breeding'] = true,
|
||||||
|
-- SPACE_AGE 10
|
||||||
['nutrients-from-fish'] = true,
|
['nutrients-from-fish'] = true,
|
||||||
['nutrients-from-biter-egg'] = true,
|
['nutrients-from-biter-egg'] = true,
|
||||||
['yumako-processing'] = true,
|
['yumako-processing'] = true,
|
||||||
['jellynut-processing'] = true,
|
['jellynut-processing'] = true,
|
||||||
['copper-bacteria'] = true,
|
['copper-bacteria'] = true,
|
||||||
|
-- SPACE_AGE 15
|
||||||
['copper-bacteria-cultivation'] = true,
|
['copper-bacteria-cultivation'] = true,
|
||||||
['iron-bacteria'] = true,
|
['iron-bacteria'] = true,
|
||||||
['iron-bacteria-cultivation'] = true,
|
['iron-bacteria-cultivation'] = true,
|
||||||
['nutrients-from-spoilage'] = true,
|
['nutrients-from-spoilage'] = true,
|
||||||
['nutrients-from-yumako-mash'] = true,
|
['nutrients-from-yumako-mash'] = true,
|
||||||
|
-- SPACE_AGE 20
|
||||||
['nutrients-from-bioflux'] = true,
|
['nutrients-from-bioflux'] = true,
|
||||||
['pentapod-egg'] = true,
|
['pentapod-egg'] = true,
|
||||||
['rocket-fuel-from-jelly'] = true,
|
['rocket-fuel-from-jelly'] = true,
|
||||||
['bioflux'] = true,
|
['bioflux'] = true,
|
||||||
['bioplastic'] = true,
|
['bioplastic'] = true,
|
||||||
|
-- SPACE_AGE 25
|
||||||
['biosulfur'] = true,
|
['biosulfur'] = true,
|
||||||
['biolubricant'] = true,
|
['biolubricant'] = true,
|
||||||
['carbon-fiber'] = true,
|
['carbon-fiber'] = true,
|
||||||
['artificial-yumako-soil'] = true,
|
['artificial-yumako-soil'] = true,
|
||||||
['overgrowth-yumako-soil'] = true,
|
['overgrowth-yumako-soil'] = true,
|
||||||
|
-- SPACE_AGE 30
|
||||||
['artificial-jellynut-soil'] = true,
|
['artificial-jellynut-soil'] = true,
|
||||||
['overgrowth-jellynut-soil'] = true,
|
['overgrowth-jellynut-soil'] = true,
|
||||||
['biochamber'] = true,
|
['biochamber'] = true,
|
||||||
['captive-biter-spawner'] = true,
|
['captive-biter-spawner'] = true,
|
||||||
['capture-robot-rocket'] = true,
|
['capture-robot-rocket'] = true,
|
||||||
|
-- SPACE_AGE 35
|
||||||
['biter-egg'] = true,
|
['biter-egg'] = true,
|
||||||
['spoilage-from-nutrients'] = true,
|
['spoilage-from-nutrients'] = true,
|
||||||
['tungsten-carbide'] = true,
|
['tungsten-carbide'] = true,
|
||||||
['tungsten-plate'] = true,
|
['tungsten-plate'] = true,
|
||||||
['coal-synthesis'] = true,
|
['coal-synthesis'] = true,
|
||||||
|
-- SPACE_AGE 40
|
||||||
['spoilage-recycling'] = true,
|
['spoilage-recycling'] = true,
|
||||||
['asteroid-collector'] = true,
|
['asteroid-collector'] = true,
|
||||||
['ammoniacal-solution-separation'] = true,
|
['ammoniacal-solution-separation'] = true,
|
||||||
['lithium'] = true,
|
['lithium'] = true,
|
||||||
['lithium-plate'] = true,
|
['lithium-plate'] = true,
|
||||||
|
-- SPACE_AGE 45
|
||||||
['ice-platform'] = true,
|
['ice-platform'] = true,
|
||||||
['solid-fuel-from-ammonia'] = true,
|
['solid-fuel-from-ammonia'] = true,
|
||||||
['ammonia-rocket-fuel'] = true,
|
['ammonia-rocket-fuel'] = true,
|
||||||
['quantum-processor'] = true,
|
['quantum-processor'] = true,
|
||||||
['holmium-solution'] = true,
|
['holmium-solution'] = true,
|
||||||
|
-- SPACE_AGE 50
|
||||||
['holmium-plate'] = true,
|
['holmium-plate'] = true,
|
||||||
['electrolyte'] = true,
|
['electrolyte'] = true,
|
||||||
['supercapacitor'] = true,
|
['supercapacitor'] = true,
|
||||||
['superconductor'] = true,
|
['superconductor'] = true,
|
||||||
['molten-iron-from-lava'] = true,
|
['molten-iron-from-lava'] = true,
|
||||||
|
-- SPACE_AGE 55
|
||||||
['molten-copper-from-lava'] = true,
|
['molten-copper-from-lava'] = true,
|
||||||
['molten-iron'] = true,
|
['molten-iron'] = true,
|
||||||
['molten-copper'] = true,
|
['molten-copper'] = true,
|
||||||
['casting-iron'] = true,
|
['casting-iron'] = true,
|
||||||
['casting-steel'] = true,
|
['casting-steel'] = true,
|
||||||
|
-- SPACE_AGE 60
|
||||||
['casting-copper'] = true,
|
['casting-copper'] = true,
|
||||||
['casting-iron-gear-wheel'] = true,
|
['casting-iron-gear-wheel'] = true,
|
||||||
['casting-iron-stick'] = true,
|
['casting-iron-stick'] = true,
|
||||||
['casting-pipe'] = true,
|
['casting-pipe'] = true,
|
||||||
['casting-pipe-to-ground'] = true,
|
['casting-pipe-to-ground'] = true,
|
||||||
|
-- SPACE_AGE 65
|
||||||
['casting-low-density-structure'] = true,
|
['casting-low-density-structure'] = true,
|
||||||
['concrete-from-molten-iron'] = true,
|
['concrete-from-molten-iron'] = true,
|
||||||
['casting-copper-cable'] = true,
|
['casting-copper-cable'] = true,
|
||||||
['acid-neutralisation'] = true,
|
['acid-neutralisation'] = true,
|
||||||
['simple-coal-liquefaction'] = true,
|
['simple-coal-liquefaction'] = true,
|
||||||
|
-- SPACE_AGE 70
|
||||||
['scrap-recycling'] = true,
|
['scrap-recycling'] = true,
|
||||||
['foundation'] = true,
|
['foundation'] = true,
|
||||||
['steam-condensation'] = true,
|
['steam-condensation'] = true,
|
||||||
['thruster'] = true,
|
['thruster'] = true,
|
||||||
['thruster-fuel'] = true,
|
['thruster-fuel'] = true,
|
||||||
|
-- SPACE_AGE 75
|
||||||
['thruster-oxidizer'] = true,
|
['thruster-oxidizer'] = true,
|
||||||
['advanced-thruster-fuel'] = true,
|
['advanced-thruster-fuel'] = true,
|
||||||
['advanced-thruster-oxidizer'] = true,
|
['advanced-thruster-oxidizer'] = true,
|
||||||
['metallic-asteroid-crushing'] = true,
|
['metallic-asteroid-crushing'] = true,
|
||||||
['carbonic-asteroid-crushing'] = true,
|
['carbonic-asteroid-crushing'] = true,
|
||||||
|
-- SPACE_AGE 80
|
||||||
['oxide-asteroid-crushing'] = true,
|
['oxide-asteroid-crushing'] = true,
|
||||||
['advanced-metallic-asteroid-crushing'] = true,
|
['advanced-metallic-asteroid-crushing'] = true,
|
||||||
['advanced-carbonic-asteroid-crushing'] = true,
|
['advanced-carbonic-asteroid-crushing'] = true,
|
||||||
['advanced-oxide-asteroid-crushing'] = true,
|
['advanced-oxide-asteroid-crushing'] = true,
|
||||||
['metallic-asteroid-reprocessing'] = true,
|
['metallic-asteroid-reprocessing'] = true,
|
||||||
|
-- SPACE_AGE 85
|
||||||
['carbonic-asteroid-reprocessing'] = true,
|
['carbonic-asteroid-reprocessing'] = true,
|
||||||
['oxide-asteroid-reprocessing'] = true,
|
['oxide-asteroid-reprocessing'] = true,
|
||||||
['space-platform-foundation'] = true,
|
['space-platform-foundation'] = true,
|
||||||
['space-platform-starter-pack'] = true,
|
['space-platform-starter-pack'] = true,
|
||||||
['carbon'] = true,
|
['carbon'] = true,
|
||||||
|
-- SPACE_AGE 90
|
||||||
['ice-melting'] = true,
|
['ice-melting'] = true,
|
||||||
['crusher'] = true
|
['crusher'] = true
|
||||||
},
|
},
|
||||||
|
|||||||
+43
-52
@@ -184,24 +184,13 @@ end
|
|||||||
if items['technology_reform'] then
|
if items['technology_reform'] then
|
||||||
for k, v in pairs(items['technology_reform']) do
|
for k, v in pairs(items['technology_reform']) do
|
||||||
if data.raw.technology[k] then
|
if data.raw.technology[k] then
|
||||||
if v.prerequisites then
|
data.raw.technology[k].prerequisites = (v.prerequisites and v.prerequisites) or data.raw.technology[k].prerequisites
|
||||||
data.raw.technology[k].prerequisites = v.prerequisites
|
data.raw.technology[k].unit = (v.unit and v.unit) or data.raw.technology[k].unit
|
||||||
end
|
data.raw.technology[k].effects = (v.effects and v.effects) or data.raw.technology[k].effects
|
||||||
|
|
||||||
if v.unit then
|
if data.raw.technology[k].unit then
|
||||||
data.raw.technology[k].unit = v.unit
|
data.raw.technology[k].unit.count = (v.unit_count and v.unit_count) or data.raw.technology[k].unit.count
|
||||||
end
|
data.raw.technology[k].unit.ingredients = (v.unit_ingredients and v.unit_ingredients) or data.raw.technology[k].unit.ingredients
|
||||||
|
|
||||||
if v.unit_count then
|
|
||||||
data.raw.technology[k].unit.count = v.unit_count
|
|
||||||
end
|
|
||||||
|
|
||||||
if v.unit_ingredients then
|
|
||||||
data.raw.technology[k].unit.ingredients = v.unit_ingredients
|
|
||||||
end
|
|
||||||
|
|
||||||
if v.effects then
|
|
||||||
data.raw.technology[k].effects = v.effects
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -227,7 +216,7 @@ if items['technology'] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local unwanted = {
|
local lab_ingredient_removal = {
|
||||||
['metallurgic-science-pack'] = true,
|
['metallurgic-science-pack'] = true,
|
||||||
['agricultural-science-pack'] = true,
|
['agricultural-science-pack'] = true,
|
||||||
['electromagnetic-science-pack'] = true,
|
['electromagnetic-science-pack'] = true,
|
||||||
@@ -237,11 +226,9 @@ local unwanted = {
|
|||||||
|
|
||||||
for _, tech in pairs(data.raw.technology) do
|
for _, tech in pairs(data.raw.technology) do
|
||||||
if tech.unit and tech.unit.ingredients then
|
if tech.unit and tech.unit.ingredients then
|
||||||
local ings = tech.unit.ingredients
|
for i = #tech.unit.ingredients, 1, -1 do
|
||||||
|
if lab_ingredient_removal[tech.unit.ingredients[i][1]] then
|
||||||
for i = #ings, 1, -1 do
|
table.remove(tech.unit.ingredients, i)
|
||||||
if unwanted[ings[i][1]] then
|
|
||||||
table.remove(ings, i)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -296,13 +283,8 @@ end
|
|||||||
if items['recipe_reform'] then
|
if items['recipe_reform'] then
|
||||||
for k, v in pairs(items['recipe_reform']) do
|
for k, v in pairs(items['recipe_reform']) do
|
||||||
if data.raw.recipe[k] then
|
if data.raw.recipe[k] then
|
||||||
if v.ingredients then
|
data.raw.recipe[k].ingredients = (v.ingredients and v.ingredients) or data.raw.recipe[k].ingredients
|
||||||
data.raw.recipe[k].ingredients = v.ingredients
|
data.raw.recipe[k].results = (v.results and v.results) or data.raw.recipe[k].results
|
||||||
end
|
|
||||||
|
|
||||||
if v.results then
|
|
||||||
data.raw.recipe[k].results = v.results
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -335,9 +317,6 @@ if data.raw['unit-spawner'] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- GM-VP C 1 SPACE_AGE ENTITY
|
|
||||||
data.raw['assembling-machine']['captive-biter-spawner'].fixed_recipe = nil
|
|
||||||
|
|
||||||
-- GM-VP H 20 SPACE_AGE ENTITY
|
-- GM-VP H 20 SPACE_AGE ENTITY
|
||||||
-- GM-VP H 9 SPACE_AGE SPACE_CONNECTION
|
-- GM-VP H 9 SPACE_AGE SPACE_CONNECTION
|
||||||
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
||||||
@@ -350,27 +329,33 @@ for _, c in pairs({'space-connection', 'space-location', 'asteroid', 'asteroid-c
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if items['recipe'] then
|
if not items['recipe'] then
|
||||||
for _, v in pairs(data.raw.recipe) do
|
items['recipe'] = {}
|
||||||
v.surface_conditions = nil
|
end
|
||||||
v.maximum_productivity = nil
|
|
||||||
v.auto_recycle = false
|
|
||||||
|
|
||||||
if items['recipe'][v.name] then
|
-- GM-VP H 92 SPACE_AGE RECIPE
|
||||||
v.hidden = true
|
-- GM-VP H 1 QUALITY RECIPE
|
||||||
v.hidden_in_factoriopedia = true
|
for _, v in pairs(data.raw.recipe) do
|
||||||
end
|
v.surface_conditions = nil
|
||||||
|
v.maximum_productivity = nil
|
||||||
|
v.auto_recycle = false
|
||||||
|
|
||||||
|
if items['recipe'][v.name] then
|
||||||
|
v.hidden = true
|
||||||
|
v.hidden_in_factoriopedia = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if items['item'] then
|
if items['item'] then
|
||||||
for _, v in pairs(data.raw.item) do
|
items['item'] = {}
|
||||||
v.auto_recycle = false
|
end
|
||||||
|
|
||||||
if items['item'][v.name] then
|
for _, v in pairs(data.raw.item) do
|
||||||
v.hidden = true
|
v.auto_recycle = false
|
||||||
v.hidden_in_factoriopedia = true
|
|
||||||
end
|
if items['item'][v.name] then
|
||||||
|
v.hidden = true
|
||||||
|
v.hidden_in_factoriopedia = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -432,10 +417,16 @@ if data.raw['chain-active-trigger'] and data.raw['chain-active-trigger']['chain-
|
|||||||
data.raw['chain-active-trigger']['chain-tesla-turret-chain'].fork_chance = 0.3
|
data.raw['chain-active-trigger']['chain-tesla-turret-chain'].fork_chance = 0.3
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs({'vulcanus', 'gleba', 'fulgora', 'aquilo'}) do
|
-- GM-VP C 4 SPACE_AGE MAP_GEN_SETTING
|
||||||
data.raw.planet[v].map_gen_settings = nil
|
-- GM-VP H 4 SPACE_AGE PLANET
|
||||||
data.raw.planet[v].hidden = true
|
if data.raw.planet then
|
||||||
data.raw.planet[v].hidden_in_factoriopedia = true
|
for _, v in pairs({'vulcanus', 'gleba', 'fulgora', 'aquilo'}) do
|
||||||
|
if data.raw.planet[v] then
|
||||||
|
data.raw.planet[v].map_gen_settings = nil
|
||||||
|
data.raw.planet[v].hidden = true
|
||||||
|
data.raw.planet[v].hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs({'calcite', 'fluorine-vent', 'lithium-brine', 'scrap', 'tungsten-ore'}) do
|
for _, v in pairs({'calcite', 'fluorine-vent', 'lithium-brine', 'scrap', 'tungsten-ore'}) do
|
||||||
|
|||||||
Reference in New Issue
Block a user