mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-13 05:08:44 +09:00
.
This commit is contained in:
+46
-45
@@ -441,51 +441,52 @@ local items = {
|
||||
'lava-processing'
|
||||
},
|
||||
['technology'] = {
|
||||
['planet-discovery-vulcanus'] = true,
|
||||
['planet-discovery-gleba'] = true,
|
||||
['planet-discovery-fulgora'] = true,
|
||||
['planet-discovery-aquilo'] = true,
|
||||
['recycling'] = true,
|
||||
['lightning-collector'] = 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,
|
||||
['captivity'] = true,
|
||||
['biter-egg-handling'] = true,
|
||||
['carbon-fiber'] = true,
|
||||
['fish-breeding'] = true,
|
||||
['holmium-processing'] = true,
|
||||
['electromagnetic-science-pack'] = true,
|
||||
['rail-support-foundations'] = true,
|
||||
['lithium-processing'] = true,
|
||||
['quantum-processor'] = true,
|
||||
['cryogenic-science-pack'] = true,
|
||||
['captive-biter-spawner'] = true,
|
||||
['promethium-science-pack'] = true,
|
||||
['foundation'] = true,
|
||||
['scrap-recycling-productivity'] = true,
|
||||
['biochamber'] = true,
|
||||
['space-platform-thruster'] = true,
|
||||
['space-platform'] = true,
|
||||
['asteroid-reprocessing'] = true,
|
||||
['advanced-asteroid-processing'] = true,
|
||||
['asteroid-productivity'] = true,
|
||||
['calcite-processing'] = true,
|
||||
['artillery-shell-damage-1'] = true,
|
||||
['electric-weapons-damage-1'] = true,
|
||||
['electric-weapons-damage-2'] = true,
|
||||
['electric-weapons-damage-3'] = true,
|
||||
['electric-weapons-damage-4'] = true,
|
||||
['railgun-damage-1'] = true,
|
||||
['railgun-shooting-speed-1'] = true,
|
||||
-- SPACE_AGE 0
|
||||
'planet-discovery-vulcanus',
|
||||
'planet-discovery-gleba',
|
||||
'planet-discovery-fulgora',
|
||||
'planet-discovery-aquilo',
|
||||
'recycling',
|
||||
-- SPACE_AGE 5
|
||||
'lightning-collector',
|
||||
'tungsten-carbide',
|
||||
'tungsten-steel',
|
||||
'metallurgic-science-pack',
|
||||
'yumako',
|
||||
-- SPACE_AGE 10
|
||||
'jellynut',
|
||||
'bioflux',
|
||||
'artificial-soil',
|
||||
'overgrowth-soil',
|
||||
'bacteria-cultivation',
|
||||
-- SPACE_AGE 15
|
||||
'bioflux-processing',
|
||||
'agricultural-science-pack',
|
||||
'captivity',
|
||||
'biter-egg-handling',
|
||||
'carbon-fiber',
|
||||
-- SPACE_AGE 20
|
||||
'fish-breeding',
|
||||
'holmium-processing',
|
||||
'electromagnetic-science-pack',
|
||||
'rail-support-foundations',
|
||||
'lithium-processing',
|
||||
-- SPACE_AGE 25
|
||||
'quantum-processor',
|
||||
'cryogenic-science-pack',
|
||||
'captive-biter-spawner',
|
||||
'promethium-science-pack',
|
||||
'foundation',
|
||||
-- SPACE_AGE 30
|
||||
'scrap-recycling-productivity',
|
||||
'biochamber',
|
||||
'space-platform-thruster',
|
||||
'space-platform',
|
||||
'asteroid-reprocessing',
|
||||
-- SPACE_AGE 35
|
||||
'advanced-asteroid-processing',
|
||||
'asteroid-productivity',
|
||||
'calcite-processing',
|
||||
},
|
||||
['recipe'] = {
|
||||
['recycler'] = true,
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
--[[
|
||||
for _, v in pairs({'gleba-spawner', 'gleba-spawner-small'}) do
|
||||
data.raw['unit-spawner'][v].loot = nil
|
||||
data.raw['unit-spawner'][v].collision_mask = nil
|
||||
data.raw['unit-spawner'][v].autoplace = nil
|
||||
data.raw['unit-spawner'][v].hidden = true
|
||||
data.raw['unit-spawner'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-demolisher', 'medium-demolisher', 'big-demolisher'}) do
|
||||
data.raw['segmented-unit'][v].hidden = true
|
||||
data.raw['segmented-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-wriggler-pentapod-premature', 'medium-wriggler-pentapod-premature', 'big-wriggler-pentapod-premature'}) do
|
||||
data.raw['unit'][v].absorptions_to_join_attack = {pollution = 0}
|
||||
data.raw['unit'][v].hidden = true
|
||||
data.raw['unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-wriggler-pentapod', 'medium-wriggler-pentapod', 'big-wriggler-pentapod'}) do
|
||||
data.raw['unit'][v].absorptions_to_join_attack = {pollution = 2}
|
||||
data.raw['unit'][v].hidden = true
|
||||
data.raw['unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-strafer-pentapod', 'medium-strafer-pentapod', 'big-strafer-pentapod'}) do
|
||||
data.raw['spider-unit'][v].absorptions_to_join_attack = {pollution = 20}
|
||||
data.raw['spider-unit'][v].hidden = true
|
||||
data.raw['spider-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-stomper-pentapod', 'medium-stomper-pentapod', 'big-stomper-pentapod'}) do
|
||||
data.raw['spider-unit'][v].absorptions_to_join_attack = {pollution = 25}
|
||||
table.remove(data.raw['spider-unit'][v].dying_trigger_effect, 1)
|
||||
data.raw['spider-unit'][v].hidden = true
|
||||
data.raw['spider-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'ashland-lichen-tree', 'ashland-lichen-tree-flaming', 'cuttlepop', 'slipstack', 'funneltrunk', 'hairyclubnub', 'teflilly', 'lickmaw', 'stingfrond', 'boompuff', 'sunnycomb', 'water-cane'}) do
|
||||
data.raw['tree'][v].autoplace = nil
|
||||
end
|
||||
|
||||
for _, v in pairs({'yumako-tree', 'jellystem'}) do
|
||||
data.raw['plant'][v].autoplace = nil
|
||||
end
|
||||
|
||||
for _, v in pairs({'natural-yumako-soil', 'natural-jellynut-soil', 'wetland-yumako', 'wetland-jellynut', 'lowland-brown-blubber', 'lowland-olive-blubber', 'lowland-olive-blubber-2', 'lowland-olive-blubber-3', 'lowland-cream-red', 'lowland-red-vein', 'lowland-red-vein-2', 'lowland-red-vein-3', 'lowland-red-vein-4', 'lowland-red-vein-dead', 'lowland-red-infection', 'ammoniacal-ocean', 'ammoniacal-ocean-2'}) do
|
||||
data.raw['planet']['nauvis'].map_gen_settings.autoplace_settings.tile.settings[v] = nil
|
||||
end
|
||||
]]
|
||||
+29
-90
@@ -207,6 +207,26 @@ if items['technology_reform'] then
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP H 38 SPACE_AGE RESEARCH
|
||||
if items['technology'] then
|
||||
for _, v in pairs(items['technology']) do
|
||||
if data.raw.technology[v] then
|
||||
data.raw.technology[v].hidden = true
|
||||
data.raw.technology[v].hidden_in_factoriopedia = true
|
||||
data.raw.technology[v].effects = nil
|
||||
|
||||
if data.raw.technology[v].research_trigger then
|
||||
data.raw.technology[v].research_trigger = nil
|
||||
data.raw.technology[v].unit = {count = 1000, time = 30, ingredients = {{'automation-science-pack', 1}}}
|
||||
end
|
||||
|
||||
if data.raw.technology[v].unit and data.raw.technology[v].unit.ingredients then
|
||||
data.raw.technology[v].unit.ingredients = {{'space-science-pack', 1}}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP A 2 SPACE_AGE RESEARCH_EFFECT
|
||||
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'})
|
||||
@@ -229,16 +249,6 @@ for _, v in pairs({'carbonic', 'metallic', 'promethium', 'oxide'}) do
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP H 20 SPACE_AGE ENTITY
|
||||
for _, a in pairs({'asteroid', 'asteroid-chunk'}) do
|
||||
if data.raw[a] then
|
||||
for _, v in pairs(data.raw[a]) do
|
||||
v.hidden = true
|
||||
v.hidden_in_factoriopedia = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP H 2 SPACE_AGE FLUID
|
||||
for _, v in pairs({'thruster-oxidizer', 'thruster-fuel'}) do
|
||||
if data.raw.fluid[v] then
|
||||
@@ -285,16 +295,16 @@ if data.raw['unit-spawner'] then
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
||||
for _, v in pairs(data.raw['space-location']) do
|
||||
v.hidden = true
|
||||
v.hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
-- GM-VP H 20 SPACE_AGE ENTITY
|
||||
-- GM-VP H 9 SPACE_AGE SPACE_CONNECTION
|
||||
for _, v in pairs(data.raw['space-connection']) do
|
||||
v.hidden = true
|
||||
v.hidden_in_factoriopedia = true
|
||||
-- GM-VP H 3 SPACE_AGE SPACE_LOCATION
|
||||
for _, c in pairs({'space-connection', 'space-location', 'asteroid', 'asteroid-chunk'}) do
|
||||
if data.raw[c] then
|
||||
for _, v in pairs(data.raw[c]) do
|
||||
v.hidden = true
|
||||
v.hidden_in_factoriopedia = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(data.raw.recipe) do
|
||||
@@ -384,34 +394,7 @@ end
|
||||
|
||||
data.raw['lightning-attractor']['fulgoran-ruin-attractor'].autoplace = nil
|
||||
|
||||
for _, v in pairs({'ashland-lichen-tree', 'ashland-lichen-tree-flaming', 'cuttlepop', 'slipstack', 'funneltrunk', 'hairyclubnub', 'teflilly', 'lickmaw', 'stingfrond', 'boompuff', 'sunnycomb', 'water-cane'}) do
|
||||
data.raw['tree'][v].autoplace = nil
|
||||
end
|
||||
|
||||
for _, v in pairs({'yumako-tree', 'jellystem'}) do
|
||||
data.raw['plant'][v].autoplace = nil
|
||||
end
|
||||
|
||||
for _, v in pairs({'natural-yumako-soil', 'natural-jellynut-soil', 'wetland-yumako', 'wetland-jellynut', 'lowland-brown-blubber', 'lowland-olive-blubber', 'lowland-olive-blubber-2', 'lowland-olive-blubber-3', 'lowland-cream-red', 'lowland-red-vein', 'lowland-red-vein-2', 'lowland-red-vein-3', 'lowland-red-vein-4', 'lowland-red-vein-dead', 'lowland-red-infection', 'ammoniacal-ocean', 'ammoniacal-ocean-2'}) do
|
||||
data.raw['planet']['nauvis'].map_gen_settings.autoplace_settings.tile.settings[v] = nil
|
||||
end
|
||||
|
||||
for k, v in pairs(items['technology']) do
|
||||
if data.raw.technology[k] then
|
||||
data.raw.technology[k].hidden = v
|
||||
data.raw.technology[k].hidden_in_factoriopedia = v
|
||||
data.raw.technology[k].effects = nil
|
||||
|
||||
if data.raw.technology[k].research_trigger then
|
||||
data.raw.technology[k].research_trigger = nil
|
||||
data.raw.technology[k].unit = {count = 1000, time = 30, ingredients = {{'automation-science-pack', 1}}}
|
||||
end
|
||||
|
||||
if data.raw.technology[k].unit and data.raw.technology[k].unit.ingredients then
|
||||
data.raw.technology[k].unit.ingredients = {{'space-science-pack', 1}}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for k, v in pairs(items['item']) do
|
||||
if data.raw.item[k] then
|
||||
@@ -445,44 +428,6 @@ for _, v in pairs({'cliff-fulgora', 'cliff-gleba', 'cliff-vulcanus', 'crater-cli
|
||||
data.raw['cliff'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-wriggler-pentapod-premature', 'medium-wriggler-pentapod-premature', 'big-wriggler-pentapod-premature'}) do
|
||||
data.raw['unit'][v].absorptions_to_join_attack = {pollution = 0}
|
||||
data.raw['unit'][v].hidden = true
|
||||
data.raw['unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-wriggler-pentapod', 'medium-wriggler-pentapod', 'big-wriggler-pentapod'}) do
|
||||
data.raw['unit'][v].absorptions_to_join_attack = {pollution = 2}
|
||||
data.raw['unit'][v].hidden = true
|
||||
data.raw['unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-strafer-pentapod', 'medium-strafer-pentapod', 'big-strafer-pentapod'}) do
|
||||
data.raw['spider-unit'][v].absorptions_to_join_attack = {pollution = 20}
|
||||
data.raw['spider-unit'][v].hidden = true
|
||||
data.raw['spider-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-stomper-pentapod', 'medium-stomper-pentapod', 'big-stomper-pentapod'}) do
|
||||
data.raw['spider-unit'][v].absorptions_to_join_attack = {pollution = 25}
|
||||
table.remove(data.raw['spider-unit'][v].dying_trigger_effect, 1)
|
||||
data.raw['spider-unit'][v].hidden = true
|
||||
data.raw['spider-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'gleba-spawner', 'gleba-spawner-small'}) do
|
||||
data.raw['unit-spawner'][v].loot = nil
|
||||
data.raw['unit-spawner'][v].collision_mask = nil
|
||||
data.raw['unit-spawner'][v].autoplace = nil
|
||||
data.raw['unit-spawner'][v].hidden = true
|
||||
data.raw['unit-spawner'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'small-demolisher', 'medium-demolisher', 'big-demolisher'}) do
|
||||
data.raw['segmented-unit'][v].hidden = true
|
||||
data.raw['segmented-unit'][v].hidden_in_factoriopedia = true
|
||||
end
|
||||
|
||||
for _, v in pairs({'bioflux', 'jelly', 'jellynut', 'yumako', 'yumako-mash'}) do
|
||||
data.raw['capsule'][v].hidden = true
|
||||
data.raw['capsule'][v].hidden_in_factoriopedia = true
|
||||
@@ -512,12 +457,6 @@ data.raw['kill-achievement']['if-it-bleeds'] = nil
|
||||
data.raw['kill-achievement']['we-need-bigger-guns'] = nil
|
||||
data.raw['kill-achievement']['size-doesnt-matter'] = nil
|
||||
|
||||
for _, v in pairs(data.raw.tree) do
|
||||
if v.minable and v.minable.results then
|
||||
v.minable.results = {{type = 'item', name = 'wood', amount = 4}}
|
||||
end
|
||||
end
|
||||
|
||||
data.raw['tile']['empty-space'].hidden = true
|
||||
data.raw['tile']['empty-space'].hidden_in_factoriopedia = true
|
||||
data.raw['tile']['space-platform-foundation'].hidden = true
|
||||
|
||||
Reference in New Issue
Block a user