mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -630,52 +630,34 @@
|
|||||||
|
|
||||||
local resource_autoplace = require('resource-autoplace')
|
local resource_autoplace = require('resource-autoplace')
|
||||||
|
|
||||||
data.raw.resource['fluorine-vent'].autoplace = resource_autoplace.resource_autoplace_settings{
|
for k, v in pairs({['fluorine-vent'] = 'b', ['lithium-brine'] = 'a-b-a', ['sulfuric-acid-geyser'] = 'a-b-b'}) do
|
||||||
name = 'fluorine-vent',
|
data.raw.resource[k].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||||
order = 'b',
|
name = k,
|
||||||
control = 'fluorine_vent',
|
order = v,
|
||||||
base_density = 8.2,
|
control = k:gsub('-', '_'),
|
||||||
base_spots_per_km2 = 1.8,
|
base_density = 8.2,
|
||||||
random_probability = 1 / 48,
|
base_spots_per_km2 = 1.8,
|
||||||
random_spot_size_minimum = 1,
|
random_probability = 1 / 48,
|
||||||
random_spot_size_maximum = 1,
|
random_spot_size_minimum = 1,
|
||||||
additional_richness = 220000,
|
random_spot_size_maximum = 1,
|
||||||
has_starting_area_placement = false,
|
additional_richness = 220000,
|
||||||
regular_rq_factor_multiplier = 1
|
has_starting_area_placement = false,
|
||||||
}
|
regular_rq_factor_multiplier = 1
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
data.raw.resource['lithium-brine'].autoplace = resource_autoplace.resource_autoplace_settings{
|
for k, v in pairs({['calcite'] = 'b', ['tungsten-ore'] = 'b', ['scrap'] = 'c'}) do
|
||||||
name = 'lithium-brine',
|
data.raw.resource[k].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||||
order = 'a-b-a',
|
name = k,
|
||||||
control = 'lithium_brine'
|
order = v,
|
||||||
}
|
base_density = 0.9,
|
||||||
|
base_spots_per_km2 = 1.25,
|
||||||
data.raw.resource['sulfuric-acid-geyser'].autoplace = resource_autoplace.resource_autoplace_settings{
|
has_starting_area_placement = false,
|
||||||
name = 'sulfuric-acid-geyser',
|
random_spot_size_minimum = 2,
|
||||||
order = 'a-b-b',
|
random_spot_size_maximum = 4,
|
||||||
control = 'sulfuric_acid_geyser'
|
regular_rq_factor_multiplier = 1
|
||||||
}
|
}
|
||||||
|
end
|
||||||
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 _, v in pairs({'calcite', 'fluorine_vent', 'lithium_brine', 'scrap', 'sulfuric_acid_geyser', 'tungsten_ore'}) do
|
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] = {}
|
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.autoplace_controls['gleba_enemy_base'] = {}
|
||||||
|
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:tungsten-ore:probability'] = 'vulcanus_tungsten_ore_probability'
|
local pen = {
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:tungsten-ore:richness'] = 'vulcanus_tungsten_ore_richness'
|
['entity:tungsten-ore:probability'] = 'vulcanus_tungsten_ore_probability',
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:calcite:probability'] = 'vulcanus_calcite_probability'
|
['entity:tungsten-ore:richness'] = 'vulcanus_tungsten_ore_richness',
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:calcite:richness'] = 'vulcanus_calcite_richness'
|
['entity:calcite:probability'] = 'vulcanus_calcite_probability',
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:sulfuric-acid-geyser:probability'] = 'vulcanus_sulfuric_acid_geyser_probability'
|
['entity:calcite:richness'] = 'vulcanus_calcite_richness',
|
||||||
data.raw.planet['nauvis'].map_gen_settings.property_expression_names['entity:sulfuric-acid-geyser:richness'] = 'vulcanus_sulfuric_acid_geyser_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'].autoplace = data.raw['unit-spawner']['biter-spawner'].autoplace
|
||||||
data.raw['unit-spawner']['gleba-spawner-small'].autoplace = data.raw['unit-spawner']['spitter-spawner'].autoplace
|
data.raw['unit-spawner']['gleba-spawner-small'].autoplace = data.raw['unit-spawner']['spitter-spawner'].autoplace
|
||||||
|
|||||||
Reference in New Issue
Block a user