diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-01 19:26:01 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-06-01 19:26:01 +0200 |
commit | 2803907bc195807e3b01aa088a71920f71209269 (patch) | |
tree | f7d294383d54ef56a895cd628acc51bea1370d99 /sw-ui/src | |
parent | Use actual coin icon for price info (diff) | |
download | seven-wonders-2803907bc195807e3b01aa088a71920f71209269.tar.gz seven-wonders-2803907bc195807e3b01aa088a71920f71209269.tar.bz2 seven-wonders-2803907bc195807e3b01aa088a71920f71209269.zip |
Fix style
Diffstat (limited to 'sw-ui/src')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt index 29bfb13a..da7bcf26 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/Board.kt @@ -145,7 +145,7 @@ fun CSSBuilder.wonderCardStyle() { zIndex = -1 // below wonder } -private fun stagePositionPercent(stageIndex: Int, nbStages: Int): Double = when(nbStages) { +private fun stagePositionPercent(stageIndex: Int, nbStages: Int): Double = when (nbStages) { 2 -> 37.5 + stageIndex * 29.8 // 37.5 (29.8) 67.3 4 -> -1.5 + stageIndex * 26.7 // -1.5 (26.6) 25.1 (26.8) 51.9 (26.7) 78.6 else -> 7.9 + stageIndex * 30.0 |