Civilian units can get promotions upon being built

Promotions with no icon get default star icon
This commit is contained in:
Yair Morgenstern 2023-10-04 00:53:39 +03:00
parent c963191453
commit bcd5c361df
4 changed files with 17 additions and 12 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

@ -165,28 +165,35 @@ UnitPromotionIcons/Operational Range
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Flight Deck
UnitPromotionIcons/Fallback
rotate: false
xy: 1156, 62
size: 50, 50
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Formation
UnitPromotionIcons/Great Generals
rotate: false
xy: 1156, 62
size: 50, 50
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Quick Study
rotate: false
xy: 1156, 62
size: 50, 50
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Flight Deck
rotate: false
xy: 1214, 62
size: 50, 50
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Great Generals
rotate: false
xy: 1272, 62
size: 50, 50
orig: 50, 50
offset: 0, 0
index: -1
UnitPromotionIcons/Quick Study
UnitPromotionIcons/Formation
rotate: false
xy: 1272, 62
size: 50, 50

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -216,8 +216,6 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
if (boughtWith != null && !civInfo.gameInfo.gameParameters.godMode && !unit.hasUnique(UniqueType.MoveImmediatelyOnceBought))
unit.currentMovement = 0f
if (this.isCivilian()) return true // tiny optimization makes save files a few bytes smaller
addConstructionBonuses(unit, cityConstructions)
return true