mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 02:09:21 +07:00
"[] units gain the [] promotion" (#3204)
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user