Skip to content

Commit d86606a

Browse files
committed
fix compile issues
1 parent 8265d84 commit d86606a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/kotlin/dev/robothanzo/werewolf/service/impl/RoleServiceImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class RoleServiceImpl(
132132

133133
// 2. Logic for role selection (JinBaoBao, etc.)
134134
var rs = mutableListOf(roles.removeFirst())
135+
var isJinBaoBao = false
135136

136137
if (rs.first() == "白癡") {
137138
player.idiot = true

src/main/kotlin/dev/robothanzo/werewolf/service/impl/SpeechServiceImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import org.slf4j.LoggerFactory
2525
import org.springframework.context.annotation.Lazy
2626
import org.springframework.stereotype.Service
2727
import java.time.Duration
28-
import java.util.*
2928
import java.util.concurrent.ConcurrentHashMap
3029
import kotlin.concurrent.thread
3130

@@ -57,6 +56,7 @@ class SpeechServiceImpl(
5756
)
5857
speechSessions[guild.idLong] = speechSession
5958

59+
val order = SpeechOrder.getRandomOrder()
6060
val target = players.shuffled().first()
6161

6262
if (enrollMessage != null) {
@@ -328,7 +328,7 @@ class SpeechServiceImpl(
328328
channel.sendMessageEmbeds(
329329
EmbedBuilder()
330330
.setTitle("找不到警長,自動抽籤發言順序")
331-
.setDescription("抽到的順序: 玩家" + shuffled.first.id + randOrder.toString())
331+
.setDescription("抽到的順序: 玩家${shuffled.first().id}$randOrder")
332332
.setColor(MsgUtils.randomColor).build()
333333
).queue()
334334
}

0 commit comments

Comments
 (0)