1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Merge pull request #286 from SimonFlapse/diggy_biter_evo

Increased evolution
This commit is contained in:
Lynn 2018-11-10 14:22:00 +01:00 committed by GitHub
commit 299375731c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,7 @@ function AlienSpawner.register(config)
local alien_minimum_distance_square = config.alien_minimum_distance ^ 2
Event.add(Template.events.on_void_removed, function(event)
game.forces.enemy.evolution_factor = game.forces.enemy.evolution_factor + 0.0000008
game.forces.enemy.evolution_factor = game.forces.enemy.evolution_factor + 0.0000012
local x = event.old_tile.position.x
local y = event.old_tile.position.y
@ -57,4 +57,9 @@ Spawn chance: ]] .. (config.alien_probability * 100) .. [[%
Minimum spawn distance: ]] .. config.alien_minimum_distance .. ' tiles'
end
function AlienSpawner.on_init()
-- base factorio = pollution_factor = 0.000015
game.map_settings.enemy_evolution.pollution_factor = 0.000004
end
return AlienSpawner

View File

@ -82,8 +82,6 @@ function StartingZone.on_init()
surface.daytime = 0.5
surface.freeze_daytime = 1
-- base factorio = pollution_factor = 0.000015
game.map_settings.enemy_evolution.pollution_factor = 0.000002
end