mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-03 22:22:51 +07:00
Fixed pillaged improvement defence bonus (#8593)
* Fixed pillaged improvement defence bonus * Fix
This commit is contained in:
parent
c171376479
commit
d73814263f
@ -544,7 +544,7 @@ open class Tile : IsPartOfGameInfoSerialization {
|
||||
if (otherTerrainBonus != 0f) bonus = otherTerrainBonus // replaces baseTerrainObject
|
||||
}
|
||||
if (naturalWonder != null) bonus += getNaturalWonder().defenceBonus
|
||||
val tileImprovement = getTileImprovement()
|
||||
val tileImprovement = getUnpillagedTileImprovement()
|
||||
if (tileImprovement != null) {
|
||||
for (unique in tileImprovement.getMatchingUniques(UniqueType.DefensiveBonus, StateForConditionals(tile = this)))
|
||||
bonus += unique.params[0].toFloat() / 100
|
||||
|
Loading…
Reference in New Issue
Block a user