diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-28 13:03:36 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-28 13:34:57 +0200 |
commit | 4178ba9700ffd6619f995482a369bd5133276e2e (patch) | |
tree | 497223513f61a7162d78213e1c9fe7de16064e25 /sw-ui/src/main | |
parent | Clarify message for unavailable resources (diff) | |
download | seven-wonders-4178ba9700ffd6619f995482a369bd5133276e2e.tar.gz seven-wonders-4178ba9700ffd6619f995482a369bd5133276e2e.tar.bz2 seven-wonders-4178ba9700ffd6619f995482a369bd5133276e2e.zip |
Fix production alternative duplicates
Having twice the same choice wasn't supported so far.
This can happen with Alexandria's bonuses (4 primary resources, or 3 secondary)
associated to the yellow Market/Caravansery cards.
Resolves:
https://github.com/joffrey-bion/seven-wonders/issues/19
Diffstat (limited to 'sw-ui/src/main')
-rw-r--r-- | sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt index d3243906..a3e4cd11 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/ProductionBar.kt @@ -62,7 +62,7 @@ private fun RBuilder.fixedResources(resources: List<CountedResource>) { } } -private fun RBuilder.alternativeResources(resources: Set<Set<ResourceType>>) { +private fun RBuilder.alternativeResources(resources: List<Set<ResourceType>>) { styledDiv { css { margin = "auto" |