Skip to content

Commit ea0a8e9

Browse files
committed
无导播模式不记录符卡操作和收取
1 parent 782a72c commit ea0a8e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/kotlin/RoomTypeLink.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ object RoomTypeLink : RoomType {
125125

126126
else -> throw HandlerException("内部错误")
127127
}
128-
SpellLog.logSpellOperate(status, room.spells!![idx], token, gameType = SpellLog.GameType.LINK)
128+
if (room.host.isNotEmpty() && token != Store.robotPlayer.token){
129+
SpellLog.logSpellOperate(status, room.spells!![idx], token, gameType = SpellLog.GameType.LINK)
130+
}
129131
return result
130132
}
131133

src/main/kotlin/RoomTypeNormal.kt

+4
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ object RoomTypeNormal : RoomType {
112112
else ->
113113
throw HandlerException("内部错误")
114114
}
115+
// 无导播模式不记录
116+
if (room.host.isEmpty() || token == Store.robotPlayer.token){
117+
return result
118+
}
115119
// 等操作结束后再记录
116120
if (room.startMs > now - room.countDown.toLong() * 1000L) {
117121
// 倒计时没结束,需要按照倒计时已经结束的时间点计算开始收卡的时间

0 commit comments

Comments
 (0)