mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
"[] units gain the [] promotion" (#3204)
This commit is contained in:
parent
bfa9c65700
commit
fab8242c6a
@ -167,6 +167,12 @@ class TileMap {
|
|||||||
for (promotion in unit.baseUnit.promotions)
|
for (promotion in unit.baseUnit.promotions)
|
||||||
unit.promotions.addPromotion(promotion, true)
|
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
|
// And update civ stats, since the new unit changes both unit upkeep and resource consumption
|
||||||
civInfo.updateStatsForNextTurn()
|
civInfo.updateStatsForNextTurn()
|
||||||
civInfo.updateDetailedCivResources()
|
civInfo.updateDetailedCivResources()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user