summaryrefslogtreecommitdiff
path: root/sw-common-model/src/commonMain/kotlin/org
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-28 13:03:36 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-28 13:34:57 +0200
commit4178ba9700ffd6619f995482a369bd5133276e2e (patch)
tree497223513f61a7162d78213e1c9fe7de16064e25 /sw-common-model/src/commonMain/kotlin/org
parentClarify message for unavailable resources (diff)
downloadseven-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-common-model/src/commonMain/kotlin/org')
-rw-r--r--sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/boards/Boards.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/boards/Boards.kt b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/boards/Boards.kt
index 68a85898..333883b6 100644
--- a/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/boards/Boards.kt
+++ b/sw-common-model/src/commonMain/kotlin/org/luxons/sevenwonders/model/boards/Boards.kt
@@ -29,7 +29,7 @@ data class Requirements(
@Serializable
data class Production(
val fixedResources: List<CountedResource>,
- val alternativeResources: Set<Set<ResourceType>>
+ val alternativeResources: List<Set<ResourceType>>
)
@Serializable
bgstack15