mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
fixed active and raid nest processing
This commit is contained in:
parent
852a83df42
commit
879205d0d5
@ -4,6 +4,7 @@ Date: 23. 11. 2021
|
||||
Bugfixes:
|
||||
- Fixed vengence squads only processing half the expected chunks
|
||||
- Fixed nest processing only processing half the nests (Thank you Dimm2101)
|
||||
- Fixed active and raid nest processing only processing half the nests (Thank you Dimm2101)
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.1.4
|
||||
|
@ -497,20 +497,16 @@ end
|
||||
|
||||
local function processSpawners(map, tick, iterator, chunks)
|
||||
local chunk = next(chunks, map[iterator])
|
||||
local migrate = canMigrate(map)
|
||||
local attack = canAttack(map, tick)
|
||||
if not chunk then
|
||||
map[iterator] = nil
|
||||
return
|
||||
else
|
||||
map[iterator] = chunk
|
||||
if chunk then
|
||||
local migrate = canMigrate(map)
|
||||
local attack = canAttack(map, tick)
|
||||
if migrate then
|
||||
formSettlers(map, chunk)
|
||||
elseif attack then
|
||||
formSquads(map, chunk, tick)
|
||||
end
|
||||
chunk = next(chunks, chunk)
|
||||
end
|
||||
map[iterator] = chunk
|
||||
end
|
||||
|
||||
function mapProcessor.processSpawners(map, tick)
|
||||
|
Loading…
x
Reference in New Issue
Block a user