"[] units gain the [] promotion" (#3204)

This commit is contained in:
givehub99
2020-09-30 23:51:24 -07:00
committed by GitHub
parent bfa9c65700
commit fab8242c6a

View File

@ -167,6 +167,12 @@ class TileMap {
for (promotion in unit.baseUnit.promotions)
unit.promotions.addPromotion(promotion, true)
for (unique in civInfo.getMatchingUniques("[] units gain the [] promotion")) {
if (unique.params[0] == unit.type.name) {
unit.promotions.addPromotion(unique.params[1], true)
}
}
// And update civ stats, since the new unit changes both unit upkeep and resource consumption
civInfo.updateStatsForNextTurn()
civInfo.updateDetailedCivResources()