mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
different spawn rate for arty vs arty
This commit is contained in:
parent
8238351252
commit
e7d5044b59
@ -314,7 +314,23 @@ local function do_bot_spawn(entity_name, entity, event)
|
|||||||
target = cause,
|
target = cause,
|
||||||
force = entity_force
|
force = entity_force
|
||||||
}
|
}
|
||||||
if entity_name == 'gun-turret' then
|
|
||||||
|
if cause.name ~= 'character' then
|
||||||
|
if entity_name == 'artillery-turret' then
|
||||||
|
repeat_cycle = 15
|
||||||
|
else
|
||||||
|
repeat_cycle = 4
|
||||||
|
end
|
||||||
|
for i = 1, repeat_cycle do
|
||||||
|
spawn_entity.name = 'defender'
|
||||||
|
create_entity(spawn_entity)
|
||||||
|
create_entity(spawn_entity)
|
||||||
|
|
||||||
|
spawn_entity.name = 'destroyer'
|
||||||
|
create_entity(spawn_entity)
|
||||||
|
create_entity(spawn_entity)
|
||||||
|
end
|
||||||
|
elseif entity_name == 'gun-turret' then
|
||||||
for i = 1, repeat_cycle do
|
for i = 1, repeat_cycle do
|
||||||
spawn_entity.name = 'defender'
|
spawn_entity.name = 'defender'
|
||||||
create_entity(spawn_entity)
|
create_entity(spawn_entity)
|
||||||
@ -332,23 +348,13 @@ local function do_bot_spawn(entity_name, entity, event)
|
|||||||
create_entity(spawn_entity)
|
create_entity(spawn_entity)
|
||||||
create_entity(spawn_entity)
|
create_entity(spawn_entity)
|
||||||
end
|
end
|
||||||
elseif entity_name == 'flamethrower-turret' then
|
else
|
||||||
for i = 1, repeat_cycle do
|
for i = 1, repeat_cycle do
|
||||||
spawn_entity.name = 'distractor-capsule'
|
spawn_entity.name = 'distractor-capsule'
|
||||||
spawn_entity.speed = 0
|
spawn_entity.speed = 0
|
||||||
create_entity(spawn_entity)
|
create_entity(spawn_entity)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
|
||||||
for i = 1, 10 do
|
|
||||||
spawn_entity.name = 'defender'
|
|
||||||
create_entity(spawn_entity)
|
|
||||||
create_entity(spawn_entity)
|
|
||||||
|
|
||||||
spawn_entity.name = 'destroyer'
|
|
||||||
create_entity(spawn_entity)
|
|
||||||
create_entity(spawn_entity)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function do_coin_drop(entity_name, entity)
|
local function do_coin_drop(entity_name, entity)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user