1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-30 04:30:52 +02:00

FACTO-226: issue #164;

assuming that not found chunk is always chunk with zero pheromone
This commit is contained in:
Alexander 2023-02-17 00:03:32 +03:00 committed by Aaron Veden
parent 14b2270bdd
commit 02c23bc165
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -800,7 +800,7 @@ local function onUnitGroupCreated(event)
(universe.builderCount < universe.AI_MAX_VANILLA_BUILDER_COUNT) and
(universe.random() < 0.25)
if not settler and (universe.squadCount >= universe.AI_MAX_VANILLA_SQUAD_COUNT) then
if not settler and ( (universe.squadCount >= universe.AI_MAX_VANILLA_SQUAD_COUNT) or (chunk == -1) ) then
group.destroy()
return
end
@ -830,7 +830,7 @@ local function onUnitGroupCreated(event)
(universe.builderCount < universe.AI_MAX_VANILLA_BUILDER_COUNT) and
(universe.random() < 0.25)
if not settler and (universe.squadCount >= universe.AI_MAX_VANILLA_SQUAD_COUNT) then
if not settler and ( (universe.squadCount >= universe.AI_MAX_VANILLA_SQUAD_COUNT) or (chunk == -1) ) then
group.destroy()
return
end