1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

changed direct chunkBase access to getter

This commit is contained in:
Aaron Veden 2021-11-30 19:48:52 -08:00
parent 41e7762308
commit eaaf116e54
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -55,6 +55,7 @@ local getDeathGenerator = chunkPropertyUtils.getDeathGenerator
local processBase = baseUtils.processBase
local processNestActiveness = chunkPropertyUtils.processNestActiveness
local getChunkBase = chunkPropertyUtils.getChunkBase
local formSquads = aiAttackWave.formSquads
local formVengenceSquad = aiAttackWave.formVengenceSquad
@ -487,7 +488,7 @@ function mapProcessor.processNests(map, tick)
queueNestSpawners(map, chunk, tick)
if map.universe.NEW_ENEMIES then
local base = map.chunkToBase[chunk]
local base = getChunkBase(map, chunk)
if base and ((tick - base.tick) > BASE_PROCESS_INTERVAL) then
processBase(chunk, map, tick, base)
end