mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
122
PHI-CL/data.lua
122
PHI-CL/data.lua
@@ -603,9 +603,110 @@ if settings.startup['PHI-SA'].value then
|
||||
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_enemy_base'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['gleba_plants'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['vulcanus_volcanism'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['oil_ocean'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_controls['ammoniacal_ocean'] = {}
|
||||
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['lava'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['lava-hot'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['oil-ocean-shallow'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['oil-ocean-deep'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['ammoniacal-ocean'] = {}
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings['ammoniacal-ocean-2'] = {}
|
||||
|
||||
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'
|
||||
|
||||
data:extend({{
|
||||
type = 'autoplace-control',
|
||||
category = 'resource',
|
||||
name = 'oil_ocean',
|
||||
richness = false
|
||||
}})
|
||||
|
||||
data:extend({{
|
||||
type = 'autoplace-control',
|
||||
category = 'resource',
|
||||
name = 'ammoniacal_ocean',
|
||||
richness = false
|
||||
}})
|
||||
|
||||
local resource_autoplace = require('resource-autoplace')
|
||||
|
||||
data.raw.tile['oil-ocean-shallow'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'oil-ocean-shallow',
|
||||
order = 'a',
|
||||
random_probability = 1,
|
||||
base_density = 7,
|
||||
base_spots_per_km2 = 0.02,
|
||||
random_spot_size_minimum = 0.02,
|
||||
random_spot_size_maximum = 0.03,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'oil_ocean'
|
||||
}
|
||||
|
||||
data.raw.tile['oil-ocean-deep'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'oil-ocean-deep',
|
||||
order = 'a',
|
||||
random_probability = 1,
|
||||
base_density = 7,
|
||||
base_spots_per_km2 = 0.02,
|
||||
random_spot_size_minimum = 0.02,
|
||||
random_spot_size_maximum = 0.03,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'oil_ocean'
|
||||
}
|
||||
|
||||
data.raw.tile['lava'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'lava',
|
||||
order = 'a',
|
||||
base_density = 7,
|
||||
base_spots_per_km2 = 0.04,
|
||||
random_spot_size_minimum = 0.02,
|
||||
random_spot_size_maximum = 0.03,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'vulcanus_volcanism'
|
||||
}
|
||||
|
||||
data.raw.tile['lava-hot'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'lava-hot',
|
||||
order = 'a',
|
||||
base_density = 7,
|
||||
base_spots_per_km2 = 0.01,
|
||||
random_spot_size_minimum = 0.2,
|
||||
random_spot_size_maximum = 0.6,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'vulcanus_volcanism'
|
||||
}
|
||||
|
||||
data.raw.tile['ammoniacal-ocean'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'ammoniacal-ocean',
|
||||
order = 'a',
|
||||
random_probability = 1,
|
||||
base_density = 8.2,
|
||||
base_spots_per_km2 = 0.15,
|
||||
random_spot_size_minimum = 0.3,
|
||||
random_spot_size_maximum = 1,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'ammoniacal_ocean'
|
||||
}
|
||||
|
||||
data.raw.tile['ammoniacal-ocean-2'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'ammoniacal-ocean-2',
|
||||
order = 'a',
|
||||
random_probability = 1,
|
||||
base_density = 8.3,
|
||||
base_spots_per_km2 = 0.15,
|
||||
random_spot_size_minimum = 0.3,
|
||||
random_spot_size_maximum = 1,
|
||||
has_starting_area_placement = false,
|
||||
autoplace_control_name = 'ammoniacal_ocean'
|
||||
}
|
||||
|
||||
data.raw.resource['calcite'].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = 'calcite',
|
||||
order = 'c',
|
||||
@@ -617,28 +718,7 @@ if settings.startup['PHI-SA'].value then
|
||||
regular_rq_factor_multiplier = 1
|
||||
}
|
||||
|
||||
data.raw.resource['tungsten-ore'].autoplace = {
|
||||
order = 'c',
|
||||
has_starting_area_placement = false,
|
||||
probability_expression = 'vulcanus_tungsten_ore_probability',
|
||||
richness_expression = 'vulcanus_tungsten_ore_richness'
|
||||
}
|
||||
|
||||
--[[
|
||||
for _, v in pairs({'ammoniacal-ocean', 'ammoniacal-ocean-2', 'oil-ocean-shallow', 'oil-ocean-deep', 'lava', 'lava-hot'}) do
|
||||
data.raw.planet['nauvis'].map_gen_settings.autoplace_settings.tile.settings[v] = {}
|
||||
data.raw.tile[v].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = v,
|
||||
order = 'a',
|
||||
base_density = 8.3,
|
||||
base_spots_per_km2 = 0.15,
|
||||
random_probability = 1,
|
||||
random_spot_size_minimum = 0.3,
|
||||
random_spot_size_maximum = 1,
|
||||
has_starting_area_placement = false,
|
||||
}
|
||||
end
|
||||
|
||||
data.raw.planet['nauvis'].map_gen_settings.territory_settings = {
|
||||
units = {'small-demolisher', 'medium-demolisher', 'big-demolisher'},
|
||||
territory_index_expression = 'demolisher_territory_expression',
|
||||
|
||||
Reference in New Issue
Block a user