Rejuvenation icon + Unique promotions are listed in PromotionPickerScreen (#1506)
This commit is contained in:
parent
4af80be189
commit
c2dc0217b6
5 changed files with 246 additions and 237 deletions
BIN
android/Images/UnitPromotionIcons/Rejuvenation.png
Normal file
BIN
android/Images/UnitPromotionIcons/Rejuvenation.png
Normal file
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 |
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue