File tree Expand file tree Collapse file tree
src/main/kotlin/dev/robothanzo/werewolf/service/impl Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import org.slf4j.LoggerFactory
2525import org.springframework.context.annotation.Lazy
2626import org.springframework.stereotype.Service
2727import java.time.Duration
28- import java.util.*
2928import java.util.concurrent.ConcurrentHashMap
3029import 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 }
You can’t perform that action at this time.
0 commit comments