Allow Civilian units to promote (#11391)

This commit is contained in:
SeventhM 2024-04-07 01:26:57 -07:00 committed by GitHub
parent 773d996bf8
commit 58919f413b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,7 @@ object UnitActions {
} }
private suspend fun SequenceScope<UnitAction>.addPromoteActions(unit: MapUnit) { private suspend fun SequenceScope<UnitAction>.addPromoteActions(unit: MapUnit) {
if (unit.isCivilian() || !unit.promotions.canBePromoted()) return if (!unit.promotions.canBePromoted()) return
// promotion does not consume movement points, but is not allowed if a unit has exhausted its movement or has attacked // promotion does not consume movement points, but is not allowed if a unit has exhausted its movement or has attacked
yield(UnitAction(UnitActionType.Promote, yield(UnitAction(UnitActionType.Promote,
useFrequency = 150f, // We want to show the player that they can promote useFrequency = 150f, // We want to show the player that they can promote