mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +02:00
patch
This commit is contained in:
parent
89f3ef1823
commit
8561df034e
@ -1217,7 +1217,7 @@ function Public.Kraken_Destroyed_Backup_check(tickinterval) -- a server became b
|
|||||||
local surface = game.surfaces[boat.surface_name]
|
local surface = game.surfaces[boat.surface_name]
|
||||||
|
|
||||||
local some_spawners_should_be_alive = false
|
local some_spawners_should_be_alive = false
|
||||||
for i = 1, Public.kraken_slots do
|
for i = 1, Kraken.kraken_slots do
|
||||||
if memory.active_sea_enemies.krakens[i] then
|
if memory.active_sea_enemies.krakens[i] then
|
||||||
local kraken_data = memory.active_sea_enemies.krakens[i]
|
local kraken_data = memory.active_sea_enemies.krakens[i]
|
||||||
if kraken_data.step >= 3 then
|
if kraken_data.step >= 3 then
|
||||||
@ -1228,7 +1228,7 @@ function Public.Kraken_Destroyed_Backup_check(tickinterval) -- a server became b
|
|||||||
|
|
||||||
local but_none_are = some_spawners_should_be_alive and #surface.find_entities_flitered{name = 'biter-spawner', force = memory.enemy_force_name} == 0
|
local but_none_are = some_spawners_should_be_alive and #surface.find_entities_flitered{name = 'biter-spawner', force = memory.enemy_force_name} == 0
|
||||||
if but_none_are then
|
if but_none_are then
|
||||||
for i = 1, Public.kraken_slots do
|
for i = 1, Kraken.kraken_slots do
|
||||||
if memory.active_sea_enemies.krakens[i] then
|
if memory.active_sea_enemies.krakens[i] then
|
||||||
Kraken.kraken_die(i)
|
Kraken.kraken_die(i)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user