Skip to content

Commit

Permalink
游戏开始时不再提示清道夫胜利条件变更
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Oct 11, 2023
1 parent 0fbabce commit 6c1d54f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/kotlin/phase/WaitForSelectRole.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.fengsheng.phase
import com.fengsheng.*
import com.fengsheng.protos.Common.color
import com.fengsheng.protos.Common.role
import com.fengsheng.protos.Common.secret_task.Sweeper
import com.fengsheng.protos.Fengsheng.*
import com.fengsheng.skill.RoleSkillsData
import com.google.protobuf.GeneratedMessageV3
Expand Down Expand Up @@ -83,7 +82,6 @@ data class WaitForSelectRole(val game: Game, val options: List<List<RoleSkillsDa
builder.waitingSecond = Config.WaitSecond * 2
builder.addAllPossibleSecretTask(game.possibleSecretTasks)
player.send(builder.build())
player.notifySweeperSecretTasks()
}

companion object {
Expand All @@ -93,12 +91,5 @@ data class WaitForSelectRole(val game: Game, val options: List<List<RoleSkillsDa
private val redBluePrefer = blackPrefer + listOf(role.xiao_jiu, role.sp_gu_xiao_meng, role.bai_xiao_nian)
private val redBlueDisgust = listOf(role.jin_sheng_huo, role.mao_bu_ba, role.wang_tian_xiang)
private val blackDisgust = redBlueDisgust + listOf(role.xiao_jiu, role.sp_gu_xiao_meng, role.bai_xiao_nian)

private fun HumanPlayer.notifySweeperSecretTasks() {
if (Sweeper in game!!.possibleSecretTasks)
GameExecutor.post(game!!, {
sendErrorMessage("请注意,清道夫的胜利条件已改为:一名红色和蓝色情报均小于等于1张的人死亡")
}, 1, TimeUnit.SECONDS)
}
}
}

0 comments on commit 6c1d54f

Please sign in to comment.