From 65d04e2f10050c2b10899d7bc3a91a9e64268867 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Mon, 8 Feb 2021 19:17:34 +0100 Subject: Remove unnecessary image input in AssignedWonder Resolves: https://github.com/joffrey-bion/seven-wonders/issues/88 --- .../src/main/kotlin/org/luxons/sevenwonders/server/lobby/Lobby.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sw-server/src/main/kotlin/org/luxons') diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/lobby/Lobby.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/lobby/Lobby.kt index e0dba284..7774d517 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/lobby/Lobby.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/server/lobby/Lobby.kt @@ -4,9 +4,7 @@ import org.luxons.sevenwonders.engine.Game import org.luxons.sevenwonders.engine.data.GameDefinition import org.luxons.sevenwonders.model.Settings import org.luxons.sevenwonders.model.api.State -import org.luxons.sevenwonders.model.wonders.AssignedWonder -import org.luxons.sevenwonders.model.wonders.PreGameWonder -import org.luxons.sevenwonders.model.wonders.withRandomSide +import org.luxons.sevenwonders.model.wonders.* class Lobby( val id: Long, @@ -87,7 +85,7 @@ class Lobby( fun reassignWonders(wonders: List) { require(wonders.size == players.size) wonders.forEach { - require(it.name in allWonders.map { w -> w.name }) + require(it.name in allWonders.map { w -> w.name }) { "Unknown wonder '${it.name}'" } } assignedWonders.clear() assignedWonders.addAll(wonders) -- cgit