diff options
author | joffrey-bion <joffrey.bion@gmail.com> | 2020-05-26 18:46:46 +0200 |
---|---|---|
committer | joffrey-bion <joffrey.bion@gmail.com> | 2020-05-26 18:46:46 +0200 |
commit | d2452a32d51029ce14854ab1604d07caad2f4a5c (patch) | |
tree | 7c90435b35ca84dc034732378bb365708a56df8b /sw-ui | |
parent | Upgrade gradle wrapper (diff) | |
download | seven-wonders-d2452a32d51029ce14854ab1604d07caad2f4a5c.tar.gz seven-wonders-d2452a32d51029ce14854ab1604d07caad2f4a5c.tar.bz2 seven-wonders-d2452a32d51029ce14854ab1604d07caad2f4a5c.zip |
Fix style
Diffstat (limited to 'sw-ui')
-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 } |