hey, i really like idea of MEGA PUSH once you construct rocket silo, however description says "Finishing a stage has a chance to call nearby aliens". But i want it all! Can you say what should i change in this part of code to get mega wave with 100% chance (also how to increase ammout of enemies)
local function CallFrenzyAttack(target)
if (target and target.valid) then
local Min = 20
local Max = 40
local Dist = 400
local aliens = math.random(Min,Max)
local spawn = target.surface.find_entities_filtered({type = "unit-spawner",limit=1})
if #spawn>0 then
local force = spawn[1].force
local sent = target.surface.set_multi_command({
command = {type=defines.command.attack_area, destination=target.position, radius=50, distraction = defines.distraction.by_anything },
unit_count = aliens,
force = force,
unit_search_distance = Dist,
})
end
end
end
Should i change minmax to 100 100 and distance to 5000 for example? I am really nobish in this stuff so i need your help to tweak this mod for myself.