From d2452a32d51029ce14854ab1604d07caad2f4a5c Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Tue, 26 May 2020 18:46:46 +0200 Subject: Fix style --- .../main/kotlin/org/luxons/sevenwonders/ui/components/game/Hand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-ui/src/main/kotlin/org') 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.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 } -- cgit