Skip to content

Commit

Permalink
对簒夺者没有锁定的情况进行优化
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Dec 12, 2024
1 parent 56bc640 commit 7326f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/MessageCardValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ fun Player.calSendMessageCard(
if (canLock && nextValue >= myValue) return nextValue.toDouble()
val nextValue2 = nextPlayer.calculateMessageCardValue(whoseTurn, nextPlayer, card)
val myValue2 = nextPlayer.calculateMessageCardValue(whoseTurn, me, card)
return (if (nextValue2 >= myValue2) nextValue else myValue).toDouble()
return if (nextValue2 >= myValue2) nextValue * 0.9 + myValue * 0.1
else myValue * 0.9 + nextValue * 0.1
}
while (true) {
var m = currentPercent
Expand Down

0 comments on commit 7326f02

Please sign in to comment.