mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 02:55:22 +09:00
.
This commit is contained in:
@@ -630,52 +630,34 @@
|
||||
|
||||
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',
|
||||
base_density = 8.2,
|
||||
base_spots_per_km2 = 1.8,
|
||||
random_probability = 1 / 48,
|
||||
random_spot_size_minimum = 1,
|
||||
random_spot_size_maximum = 1,
|
||||
additional_richness = 220000,
|
||||
has_starting_area_placement = false,
|
||||
regular_rq_factor_multiplier = 1
|
||||
}
|
||||
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,
|
||||
random_spot_size_minimum = 1,
|
||||
random_spot_size_maximum = 1,
|
||||
additional_richness = 220000,
|
||||
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',
|
||||
base_density = 0.9,
|
||||
base_spots_per_km2 = 1.25,
|
||||
has_starting_area_placement = false,
|
||||
random_spot_size_minimum = 2,
|
||||
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',
|
||||
}
|
||||
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,
|
||||
random_spot_size_minimum = 2,
|
||||
random_spot_size_maximum = 4,
|
||||
regular_rq_factor_multiplier = 1
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user