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:
parent
b864a7ce16
commit
90eae72fe6
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user