Skip to content

Commit

Permalink
Merge pull request #1202 from grilledham/danger_ore_updates
Browse files Browse the repository at this point in the history
Liutio proposed changes to danger ore.
  • Loading branch information
grilledham authored Apr 9, 2021
2 parents 6335e5f + 264ad2b commit 87a50b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions map_gen/maps/danger_ores/modules/enemy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ return function(config)
local seed = config.enemy_seed or seed_provider()

local sf = 1 / scale_factor
local m = 1 / 850
local m = 1 / 768

return function(x, y, world)
if ShareGlobals.data.biters_disabled then
Expand All @@ -34,7 +34,7 @@ return function(config)
end

local threshold = 1 - d * m
threshold = max(threshold, 0.35)
threshold = max(threshold, 0.3)

x, y = x * sf, y * sf
if perlin_noise(x, y, seed) <= threshold then
Expand Down
8 changes: 4 additions & 4 deletions map_gen/maps/danger_ores/presets/danger_ore_spiral.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@ Event.on_init(
game.forces.player.technologies.logistics.researched = true
game.forces.player.technologies.automation.researched = true

game.map_settings.enemy_evolution.time_factor = 0.000007 -- default 0.000004
game.map_settings.enemy_evolution.destroy_factor = 0.000010 -- default 0.002
game.map_settings.enemy_evolution.time_factor = 0.0000077 -- default 0.000004
game.map_settings.enemy_evolution.destroy_factor = 0.000011 -- default 0.002
game.map_settings.enemy_evolution.pollution_factor = 0.000000 -- Pollution has no affect on evolution default 0.0000009

RS.get_surface().always_day = true
end
)

local terraforming = require 'map_gen.maps.danger_ores.modules.terraforming'
terraforming({start_size = 8 * 32, min_pollution = 400, max_pollution = 16000, pollution_increment = 4})
terraforming({start_size = 8 * 32, min_pollution = 350, max_pollution = 14000, pollution_increment = 3.5})

local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launched_simple'
rocket_launched({win_satellite_count = 500})
Expand Down Expand Up @@ -137,7 +137,7 @@ local config = {
trees_chance = 0.875,
enemy = enemy,
enemy_factor = 10 / (768 * 32),
enemy_max_chance = 1 / 6,
enemy_max_chance = 1 / 5,
enemy_scale_factor = 32,
fish_spawn_rate = 0.025,
dense_patches = dense_patches,
Expand Down

0 comments on commit 87a50b4

Please sign in to comment.