1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-11 13:39:14 +02:00

disabled desync

This commit is contained in:
hanakocz 2020-02-25 15:47:10 +01:00 committed by GitHub
parent ee63daacfd
commit fd22555361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 24 deletions

View File

@ -373,29 +373,29 @@ local function create_attack_group(surface)
end
Public.rogue_group = function()
if global.objective.chronotimer < 100 then return end
if not global.locomotive then return end
local surface = game.surfaces[global.active_surface_index]
local spawner = get_random_close_spawner(surface)
if not spawner then
return false
end
local position = {x = ((spawner.position.x + global.locomotive.position.x) * 0.5) , y = ((spawner.position.y + global.locomotive.position.y) * 0.5)}
local pos = surface.find_non_colliding_position("rocket-silo", position, 30, 1, true)
if not pos then return end
surface.set_multi_command({
command={
type=defines.command.build_base,
destination=pos,
distraction=defines.distraction.none,
ignore_planner = true
},
unit_count = 16,
force = "enemy",
unit_search_distance=128
})
end
-- Public.rogue_group = function()
-- if global.objective.chronotimer < 100 then return end
-- if not global.locomotive then return end
-- local surface = game.surfaces[global.active_surface_index]
-- local spawner = get_random_close_spawner(surface)
-- if not spawner then
-- return false
-- end
-- local position = {x = ((spawner.position.x + global.locomotive.position.x) * 0.5) , y = ((spawner.position.y + global.locomotive.position.y) * 0.5)}
-- local pos = surface.find_non_colliding_position("rocket-silo", position, 30, 1, true)
-- if not pos then return end
-- surface.set_multi_command({
-- command={
-- type=defines.command.build_base,
-- destination=pos,
-- distraction=defines.distraction.none,
-- ignore_planner = true
-- },
-- unit_count = 16,
-- force = "enemy",
-- unit_search_distance=128
-- })
-- end
Public.pre_main_attack = function()
if global.objective.chronotimer < 100 then return end

View File

@ -344,7 +344,7 @@ local tick_minute_functions = {
[300 * 3 + 30 * 5] = Ai.perform_main_attack, -- call perform_main_attack 7 times on different ticks
[300 * 4] = Ai.send_near_biters_to_objective,
[300 * 5] = Ai.wake_up_sleepy_groups,
[300] = Ai.rogue_group
--[300] = Ai.rogue_group
}