1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-27 21:39:16 +02:00

fixed enemy structures counted for adaptation

This commit is contained in:
Aaron Veden 2021-12-27 12:01:44 -08:00
parent b864a7ce16
commit 90eae72fe6
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Date: 17. 12. 2021
- Fixed onBuilderArrived if the builder was a unit and not a group (Thanks DBotThePony for reporting)
- Fixed adding player to chunk crash
- Fixed surface deletion with chunk processor indexing nil
- Fixed enemy structures not being counted for faction adaptation
---------------------------------------------------------------------------------------------------
Version: 2.0.3

View File

@ -507,7 +507,7 @@ function chunkUtils.unregisterEnemyBaseStructure(map, entity, damageType, skipCo
removed = true
if map.universe.NEW_ENEMIES then
local base = getChunkBase(map, chunk)
if damageType and usedBases[base.id] then
if damageType and not usedBases[base.id] then
usedBases[base.id] = true
local damageTypeName = damageType.name
base.damagedBy[damageTypeName] = (base.damagedBy[damageTypeName] or 0) + 3