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

FACTO-276: Fixed base being nil in processVengence

This commit is contained in:
Aaron Veden 2023-04-01 10:52:51 -07:00
parent acd3e47c41
commit 2876ee795b
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,7 @@
Version: 3.2.1
Bugfixes:
- Squad compression setting would trigger squad compression even with -1 as mod setting
- Fixed base being nil in processVengence function
---------------------------------------------------------------------------------------------------
Version: 3.2.0

View File

@ -382,10 +382,12 @@ function Processor.processVengence()
return
end
local base = chunk.base
if canMigrate(base) and (Universe.random() < 0.075) then
formVengenceSettler(chunk)
else
formVengenceSquad(chunk)
if base then
if canMigrate(base) and (Universe.random() < 0.075) then
formVengenceSettler(chunk)
else
formVengenceSquad(chunk)
end
end
end