Skip to content

Commit

Permalink
老鳖和程小蝶情报收益计算优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-meng committed Sep 6, 2024
1 parent 105f6be commit 09788a8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/main/kotlin/MessageCardValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,42 @@ fun Player.calculateMessageCardValue(
v1 -= 20
}
}
if (inFrontOfWhom.skills.any { it is ZhiYin }) { // 程小蝶【知音】
if (Black in colors) {
if (identity == inFrontOfWhom.identity) v1 += 10
if (identity != inFrontOfWhom.identity) v1 -= 10
}
if (inFrontOfWhom.identity != Black) {
if (identity == inFrontOfWhom.identity) v1 += 10
if (identity != inFrontOfWhom.identity) v1 -= 10
} else if (inFrontOfWhom === this) {
v1 += 10
}
if (sender.identity != Black) {
if (identity == sender.identity) v1 += 10
if (identity != sender.identity) v1 -= 10
} else if (sender === this) {
v1 += 10
}
}
if (inFrontOfWhom.skills.any { it is MingEr }) { // 老鳖【明饵】
if (Black in colors) {
if (identity == inFrontOfWhom.identity) v1 += 10
if (identity != inFrontOfWhom.identity) v1 -= 10
}
if (inFrontOfWhom.identity != Black) {
if (identity == inFrontOfWhom.identity) v1 += 10
if (identity != inFrontOfWhom.identity) v1 -= 10
} else if (inFrontOfWhom === this) {
v1 += 10
}
if (sender.identity != Black) {
if (identity == sender.identity) v1 += 10
if (identity != sender.identity) v1 -= 10
} else if (sender === this) {
v1 += 10
}
}
if (Black in colors && inFrontOfWhom.roleFaceUp &&
inFrontOfWhom.skills.any { it is YiXin } && inFrontOfWhom.messageCards.count(Black) == 2) {
// 李宁玉【遗信】
Expand Down

0 comments on commit 09788a8

Please sign in to comment.