Skip to content

Commit

Permalink
优化调包逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-meng authored and CuteReimu committed Sep 4, 2024
1 parent 2780f3e commit e0ddc3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/MessageCardValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ fun Player.calculateMessageCardValue(
value -= when (inFrontOfWhom.messageCards.count(Black)) {
0 -> 1
1 -> 11
else -> if (checkThreeSame) return 10 else 111
else -> if (checkThreeSame) return 10 else 112
}
}
} else {
Expand Down Expand Up @@ -442,7 +442,7 @@ fun Player.calculateMessageCardValue(
value -= when (inFrontOfWhom.messageCards.count(Black)) {
0 -> 1
1 -> 11
else -> if (checkThreeSame) return 10 else 111
else -> if (checkThreeSame) return 10 else 112
}
}
} else if (inFrontOfWhom.identity == enemyColor) { // 敌人
Expand All @@ -457,7 +457,7 @@ fun Player.calculateMessageCardValue(
value += when (inFrontOfWhom.messageCards.count(Black)) {
0 -> 1
1 -> 11
else -> if (checkThreeSame) return 10 else 111
else -> if (checkThreeSame) return 10 else 112
}
}
}
Expand Down

0 comments on commit e0ddc3c

Please sign in to comment.