diff options
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt index 6831d6e0..84972a2a 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt @@ -137,12 +137,12 @@ private fun RElementBuilder<IButtonGroupProps>.discardButton( ) } -private fun cardPlayabilityInfo(playability: CardPlayability) = when(playability.isPlayable) { +private fun cardPlayabilityInfo(playability: CardPlayability) = when (playability.isPlayable) { true -> priceText(-playability.minPrice) false -> playability.playabilityLevel.message } -private fun wonderBuildabilityInfo(buildability: WonderBuildability) = when(buildability.isBuildable) { +private fun wonderBuildabilityInfo(buildability: WonderBuildability) = when (buildability.isBuildable) { true -> priceText(-buildability.minPrice) false -> buildability.playabilityLevel.message } |