1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-20 03:29:47 +02:00

Wave defense - add more targets to biters

This commit is contained in:
Gerkiz 2022-08-12 19:12:39 +02:00
parent a59ccf6c12
commit 6d702f3af0
2 changed files with 3 additions and 1 deletions

View File

@ -675,6 +675,7 @@ end
local function get_side_targets(group)
local unit_group_command_step_length = Public.get('unit_group_command_step_length')
local search_side_targets = Public.get('search_side_targets')
local commands = {}
local group_position = {x = group.position.x, y = group.position.y}
@ -691,7 +692,7 @@ local function get_side_targets(group)
group.surface.find_entities_filtered {
position = old_position,
radius = step_length * 2,
type = {'simple-entity', 'tree'},
type = search_side_targets,
limit = 100
}
if obstacles then

View File

@ -81,6 +81,7 @@ function Public.reset_wave_defense()
this.random_group = nil
this.unit_group_command_delay = 3600 * 20
this.unit_group_command_step_length = 15
this.search_side_targets = {'simple-entity', 'tree', 'car', 'spider-vehicle', 'character'}
this.wave_interval = 3600
this.wave_enforced = false
this.wave_number = 0