mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 18:06:04 +07:00
Allow Civilian units to promote (#11391)
This commit is contained in:
parent
773d996bf8
commit
58919f413b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user