Rejuvenation icon + Unique promotions are listed in PromotionPickerScreen (#1506)

This commit is contained in:
r3versi 2019-12-22 14:29:40 +01:00 committed by Yair Morgenstern
parent 4af80be189
commit c2dc0217b6
5 changed files with 246 additions and 237 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 KiB

After

Width:  |  Height:  |  Size: 877 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 295 KiB

View file

@ -41,7 +41,9 @@ class PromotionPickerScreen(val unit: MapUnit) : PickerScreen() {
availablePromotionsGroup.space(10f)
val unitType = unit.type
val promotionsForUnitType = unit.civInfo.gameInfo.ruleSet.UnitPromotions.values.filter { it.unitTypes.contains(unitType.toString()) }
val promotionsForUnitType = unit.civInfo.gameInfo.ruleSet.UnitPromotions.values.filter {
it.unitTypes.contains(unitType.toString())
|| unit.promotions.promotions.contains(it.name) }
val unitAvailablePromotions = unit.promotions.getAvailablePromotions()
for (promotion in promotionsForUnitType) {