From 4f3eec40a87c5e4f52fc89238642dd7a17650540 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Thu, 21 May 2020 13:46:30 +0200 Subject: Allow custom player icons --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw-bot') diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt index deb7e237..89630b63 100644 --- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt +++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt @@ -11,6 +11,7 @@ import org.luxons.sevenwonders.model.Action import org.luxons.sevenwonders.model.MoveType import org.luxons.sevenwonders.model.PlayerMove import org.luxons.sevenwonders.model.PlayerTurnInfo +import org.luxons.sevenwonders.model.api.actions.Icon import org.luxons.sevenwonders.model.resources.noTransactions import kotlin.random.Random import kotlin.time.Duration @@ -34,7 +35,7 @@ class SevenWondersBot( suspend fun play(serverHost: String, gameId: Long) = withTimeout(botConfig.globalTimeout) { val session = client.connect(serverHost) botDelay() - session.chooseName(displayName) + session.chooseName(displayName, Icon("desktop")) botDelay() session.joinGame(gameId) botDelay() -- cgit