mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
+32
-20
@@ -219,15 +219,33 @@ for _, v in pairs({'space-science-pack', 'electromagnetic-plant', 'foundry', 'cr
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(data.raw.recipe) do
|
-- GM-VP H 4 SPACE_AGE ITEM
|
||||||
v.category = nil
|
for _, v in pairs({'carbonic', 'metallic', 'promethium', 'oxide'}) do
|
||||||
v.surface_conditions = nil
|
local l = v .. '-asteroid-chunk'
|
||||||
|
|
||||||
if items['recipe'][v.name] then
|
if data.raw.item[l] then
|
||||||
|
data.raw.item[l].hidden = true
|
||||||
|
data.raw.item[l].hidden_in_factoriopedia = true
|
||||||
|
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 = true
|
||||||
v.hidden_in_factoriopedia = true
|
v.hidden_in_factoriopedia = true
|
||||||
end
|
end
|
||||||
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
|
||||||
|
data.raw.fluid[v].hidden = true
|
||||||
|
data.raw.fluid[v].hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- GM-VP C 8 BASE RESEARCH
|
-- GM-VP C 8 BASE RESEARCH
|
||||||
-- GM-VP C 23 SPACE_AGE RESEARCH
|
-- GM-VP C 23 SPACE_AGE RESEARCH
|
||||||
@@ -267,6 +285,16 @@ if data.raw['unit-spawner'] then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, v in pairs(data.raw.recipe) do
|
||||||
|
v.category = nil
|
||||||
|
v.surface_conditions = nil
|
||||||
|
|
||||||
|
if items['recipe'][v.name] then
|
||||||
|
v.hidden = true
|
||||||
|
v.hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- TODO: add category to machine instead
|
-- TODO: add category to machine instead
|
||||||
data.raw['agricultural-tower']['agricultural-tower'].energy_source.emissions_per_minute = { pollution = -1 }
|
data.raw['agricultural-tower']['agricultural-tower'].energy_source.emissions_per_minute = { pollution = -1 }
|
||||||
data.raw['assembling-machine']['electromagnetic-plant'].effect_receiver = nil
|
data.raw['assembling-machine']['electromagnetic-plant'].effect_receiver = nil
|
||||||
@@ -495,19 +523,3 @@ data.raw['tile']['space-platform-foundation'].hidden_in_factoriopedia = true
|
|||||||
data.raw['tile']['foundation'].hidden = true
|
data.raw['tile']['foundation'].hidden = true
|
||||||
data.raw['tile']['foundation'].hidden_in_factoriopedia = true
|
data.raw['tile']['foundation'].hidden_in_factoriopedia = true
|
||||||
|
|
||||||
for _, v in pairs({'carbonic', 'metallic', 'promethium', 'oxide'}) do
|
|
||||||
data.raw.item[v .. '-asteroid-chunk'].hidden = true
|
|
||||||
data.raw.item[v .. '-asteroid-chunk'].hidden_in_factoriopedia = true
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, a in pairs({'asteroid', 'asteroid-chunk'}) do
|
|
||||||
for _, v in pairs(data.raw[a]) do
|
|
||||||
v.hidden = true
|
|
||||||
v.hidden_in_factoriopedia = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
for _, v in pairs({'thruster-oxidizer', 'thruster-fuel'}) do
|
|
||||||
data.raw.fluid[v].hidden = true
|
|
||||||
data.raw.fluid[v].hidden_in_factoriopedia = true
|
|
||||||
end
|
|
||||||
|
|||||||
Reference in New Issue
Block a user