This commit is contained in:
2025-03-04 19:53:50 +09:00
parent 84a2f0d0e7
commit b31eeb873e

View File

@@ -630,10 +630,11 @@
local resource_autoplace = require('resource-autoplace')
data.raw.resource['fluorine-vent'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'fluorine-vent',
order = 'b',
control = 'fluorine_vent',
for k, v in pairs({['fluorine-vent'] = 'b', ['lithium-brine'] = 'a-b-a', ['sulfuric-acid-geyser'] = 'a-b-b'}) do
data.raw.resource[k].autoplace = resource_autoplace.resource_autoplace_settings{
name = k,
order = v,
control = k:gsub('-', '_'),
base_density = 8.2,
base_spots_per_km2 = 1.8,
random_probability = 1 / 48,
@@ -643,22 +644,12 @@
has_starting_area_placement = false,
regular_rq_factor_multiplier = 1
}
end
data.raw.resource['lithium-brine'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'lithium-brine',
order = 'a-b-a',
control = 'lithium_brine'
}
data.raw.resource['sulfuric-acid-geyser'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'sulfuric-acid-geyser',
order = 'a-b-b',
control = 'sulfuric_acid_geyser'
}
data.raw.resource['calcite'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'calcite',
order = 'b',
for k, v in pairs({['calcite'] = 'b', ['tungsten-ore'] = 'b', ['scrap'] = 'c'}) do
data.raw.resource[k].autoplace = resource_autoplace.resource_autoplace_settings{
name = k,
order = v,
base_density = 0.9,
base_spots_per_km2 = 1.25,
has_starting_area_placement = false,
@@ -666,16 +657,7 @@
random_spot_size_maximum = 4,
regular_rq_factor_multiplier = 1
}
data.raw.resource['tungsten-ore'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'tungsten-ore',
order = 'b',
}
data.raw.resource['scrap'].autoplace = resource_autoplace.resource_autoplace_settings{
name = 'scrap',
order = 'c',
}
end
for _, v in pairs({'calcite', 'fluorine_vent', 'lithium_brine', 'scrap', 'sulfuric_acid_geyser', 'tungsten_ore'}) do
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls[v] = {}
@@ -684,12 +666,18 @@
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_enemy_base'] = {}
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:tungsten-ore:probability'] = 'vulcanus_tungsten_ore_probability'
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:tungsten-ore:richness'] = 'vulcanus_tungsten_ore_richness'
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:calcite:probability'] = 'vulcanus_calcite_probability'
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:calcite:richness'] = 'vulcanus_calcite_richness'
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:sulfuric-acid-geyser:probability'] = 'vulcanus_sulfuric_acid_geyser_probability'
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:sulfuric-acid-geyser:richness'] = 'vulcanus_sulfuric_acid_geyser_richness'
local pen = {
['entity:tungsten-ore:probability'] = 'vulcanus_tungsten_ore_probability',
['entity:tungsten-ore:richness'] = 'vulcanus_tungsten_ore_richness',
['entity:calcite:probability'] = 'vulcanus_calcite_probability',
['entity:calcite:richness'] = 'vulcanus_calcite_richness',
['entity:sulfuric-acid-geyser:probability'] = 'vulcanus_sulfuric_acid_geyser_probability',
['entity:sulfuric-acid-geyser:richness'] = 'vulcanus_sulfuric_acid_geyser_richness'
}
for k, v in pairs(pen) do
data.raw.planet['nauvis'].map_gen_settings.property_expression_names[k] = v
end
data.raw['unit-spawner']['gleba-spawner'].autoplace = data.raw['unit-spawner']['biter-spawner'].autoplace
data.raw['unit-spawner']['gleba-spawner-small'].autoplace = data.raw['unit-spawner']['spitter-spawner'].autoplace