Replace "moveTo" in unit overview with "Moving" (#7457)

This commit is contained in:
itanasi 2022-07-19 05:01:42 -07:00 committed by GitHub
parent aa8cbb49a3
commit ee6082c394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ class MapUnit : IsPartOfGameInfoSerialization {
fun isSetUpForSiege() = action == UnitActionType.SetUp.value
/** For display in Unit Overview */
fun getActionLabel() = if (action == null) "" else if (isFortified()) UnitActionType.Fortify.value else action!!
fun getActionLabel() = if (action == null) "" else if (isFortified()) UnitActionType.Fortify.value else if (isMoving()) "Moving" else action!!
fun isMilitary() = baseUnit.isMilitary()
fun isCivilian() = baseUnit.isCivilian()