mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
+14
-11
@@ -9,12 +9,11 @@ mc.space_age()
|
|||||||
-- GM-VP C 31 BASE ENTITY
|
-- GM-VP C 31 BASE ENTITY
|
||||||
-- GM-VP C 6 ELEVATED_RAILS ENTITY
|
-- GM-VP C 6 ELEVATED_RAILS ENTITY
|
||||||
-- GM-VP C 19 SPACE_AGE ENTITY
|
-- GM-VP C 19 SPACE_AGE ENTITY
|
||||||
if items['entity_surface_conditions'] then
|
-- entity_surface_conditions
|
||||||
for _, v in pairs(items['entity_surface_conditions']) do
|
for c, _ in pairs(defines.prototypes.entity) do
|
||||||
if data.raw[v] then
|
if data.raw[c] then
|
||||||
for _, v2 in pairs(data.raw[v]) do
|
for _, v in pairs(data.raw[c]) do
|
||||||
v2.surface_conditions = nil
|
v.surface_conditions = nil
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -452,12 +451,16 @@ end
|
|||||||
|
|
||||||
-- GM-VP H 1 QUALITY ITEM
|
-- GM-VP H 1 QUALITY ITEM
|
||||||
-- GM-VP H 24 SPACE_AGE ITEM
|
-- GM-VP H 24 SPACE_AGE ITEM
|
||||||
for _, v in pairs(data.raw.item) do
|
for c, _ in pairs(defines.prototypes.item) do
|
||||||
v.auto_recycle = false
|
if data.raw[c] then
|
||||||
|
for _, v in pairs(data.raw[c]) do
|
||||||
|
v.auto_recycle = false
|
||||||
|
|
||||||
if items['item'][v.name] then
|
if items['item'][v.name] then
|
||||||
v.hidden = true
|
v.hidden = true
|
||||||
v.hidden_in_factoriopedia = true
|
v.hidden_in_factoriopedia = true
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+49
-21
@@ -102,36 +102,64 @@ end
|
|||||||
|
|
||||||
-- CT A 1 BASE MAP_GEN_PRESET
|
-- CT A 1 BASE MAP_GEN_PRESET
|
||||||
if settings.startup['PHI-CT-TILE'].value then
|
if settings.startup['PHI-CT-TILE'].value then
|
||||||
local autoplace_settings = {
|
local autoplace_setting_decorative = {}
|
||||||
tile = {
|
local autoplace_setting_entity = {}
|
||||||
treat_missing_as_default = false,
|
local autoplace_setting_tile = {}
|
||||||
settings = {
|
|
||||||
[settings.startup['PHI-CT-TILE-CHOICE'].value] = {
|
for k, _ in pairs(data.raw.tile) do
|
||||||
frequency = 1.0,
|
autoplace_setting_tile[k] = {
|
||||||
size = 1.0,
|
frequency = 0,
|
||||||
richness = 1.0
|
size = 0,
|
||||||
}
|
richness = 0
|
||||||
}
|
|
||||||
},
|
|
||||||
entity = {
|
|
||||||
treat_missing_as_default = false
|
|
||||||
},
|
|
||||||
decorative = {
|
|
||||||
treat_missing_as_default = false
|
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
autoplace_setting_tile[settings.startup['PHI-CT-TILE-CHOICE'].value] = {
|
||||||
|
frequency = 1,
|
||||||
|
size = 1,
|
||||||
|
richness = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
data.raw.planet['nauvis'].map_gen_settings = {
|
for c, _ in pairs(defines.prototypes.entity) do
|
||||||
autoplace_controls = {},
|
if data.raw[c] then
|
||||||
autoplace_settings = autoplace_settings
|
for k, _ in pairs(data.raw[c]) do
|
||||||
}
|
|
||||||
|
autoplace_setting_entity[k] = {
|
||||||
|
frequency = 0,
|
||||||
|
size = 0,
|
||||||
|
richness = 0
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for k, _ in pairs(data.raw['optimized-decorative']) do
|
||||||
|
autoplace_setting_decorative[k] = {
|
||||||
|
frequency = 0,
|
||||||
|
size = 0,
|
||||||
|
richness = 0
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
data.raw['map-gen-presets']['default']['empty-world'] = {
|
data.raw['map-gen-presets']['default']['empty-world'] = {
|
||||||
order = 'zz',
|
order = 'zz',
|
||||||
basic_settings = {
|
basic_settings = {
|
||||||
default_enable_all_autoplace_controls = false,
|
default_enable_all_autoplace_controls = false,
|
||||||
autoplace_controls = {},
|
autoplace_controls = {},
|
||||||
autoplace_settings = autoplace_settings,
|
autoplace_settings = {
|
||||||
|
tile = {
|
||||||
|
treat_missing_as_default = false,
|
||||||
|
settings = autoplace_setting_tile
|
||||||
|
},
|
||||||
|
entity = {
|
||||||
|
treat_missing_as_default = false,
|
||||||
|
settings = autoplace_setting_entity
|
||||||
|
},
|
||||||
|
decorative = {
|
||||||
|
treat_missing_as_default = false,
|
||||||
|
settings = autoplace_setting_decorative
|
||||||
|
}
|
||||||
|
},
|
||||||
no_enemies_mode = true
|
no_enemies_mode = true
|
||||||
},
|
},
|
||||||
advanced_settings = {
|
advanced_settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user