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:
parent
14b2270bdd
commit
02c23bc165
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user