mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-13 05:08:44 +09:00
.
This commit is contained in:
+11
-9
@@ -431,6 +431,17 @@ if data.raw.planet then
|
||||
end
|
||||
end
|
||||
|
||||
-- GM-VP H 6 SPACE_AGE ITEM
|
||||
-- GM-VP H 4 SPACE_AGE TOOL
|
||||
if items['hidden'] then
|
||||
for k, v in pairs(items['hidden']) do
|
||||
if data.raw[v] and data.raw[v][k] then
|
||||
data.raw[v][k].hidden = true
|
||||
data.raw[v][k].hidden_in_factoriopedia = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs({'calcite', 'fluorine-vent', 'lithium-brine', 'scrap', 'tungsten-ore'}) do
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls[v:gsub('-', '_')] = nil
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.entity.settings[v] = nil
|
||||
@@ -452,15 +463,6 @@ for _, v in pairs({'vulcanus_coal', 'tungsten_ore', 'calcite', 'sulfuric_acid_ge
|
||||
end
|
||||
end
|
||||
|
||||
if items['hidden'] then
|
||||
for k, v in pairs(items['hidden']) do
|
||||
if data.raw[v] and data.raw[v][k] then
|
||||
data.raw[v][k].hidden = true
|
||||
data.raw[v][k].hidden_in_factoriopedia = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, v in pairs(data.raw['tile']) do
|
||||
if v.subgroup and (v.subgroup == 'vulcanus-tiles' or v.subgroup == 'gleba-tiles' or v.subgroup == 'gleba-water-tiles' or v.subgroup == 'fulgora-tiles' or v.subgroup == 'aquilo-tiles') then
|
||||
v.hidden = true
|
||||
|
||||
Reference in New Issue
Block a user