|
@@ -344,22 +344,26 @@ public class PKGameMode : GameMode {
|
|
|
totalScores[1] += 1;
|
|
totalScores[1] += 1;
|
|
|
} else if (currentScores[0] > currentScores[1]) {
|
|
} else if (currentScores[0] > currentScores[1]) {
|
|
|
totalScores[0] += 2;
|
|
totalScores[0] += 2;
|
|
|
|
|
+ totalScores[1] += 1;
|
|
|
} else if (currentScores[0] < currentScores[1]) {
|
|
} else if (currentScores[0] < currentScores[1]) {
|
|
|
|
|
+ totalScores[0] += 1;
|
|
|
totalScores[1] += 2;
|
|
totalScores[1] += 2;
|
|
|
}
|
|
}
|
|
|
//根据总比分判断游戏是否结束
|
|
//根据总比分判断游戏是否结束
|
|
|
- if (totalScores[0] == totalScores[1] && round == maxRound) {
|
|
|
|
|
- if (round == 5) {
|
|
|
|
|
- maxShootCount = 1;
|
|
|
|
|
- maxRound = 6;
|
|
|
|
|
- } else {
|
|
|
|
|
- gameEnd = true;
|
|
|
|
|
- gameRes = new string[]{"平局", "平局"};
|
|
|
|
|
|
|
+ if (totalScores[0] == totalScores[1]) {
|
|
|
|
|
+ if (round == maxRound) {
|
|
|
|
|
+ if (round == 5) {
|
|
|
|
|
+ maxShootCount = 1;
|
|
|
|
|
+ maxRound = 6;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ gameEnd = true;
|
|
|
|
|
+ gameRes = new string[]{"平局", "平局"};
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- } else if (totalScores[0] >= 6) {
|
|
|
|
|
|
|
+ } else if (totalScores[0] >= 6 && totalScores[0] > totalScores[1]) {
|
|
|
gameEnd = true;
|
|
gameEnd = true;
|
|
|
gameRes = new string[]{"胜利", "失败"};
|
|
gameRes = new string[]{"胜利", "失败"};
|
|
|
- } else if (totalScores[1] >= 6) {
|
|
|
|
|
|
|
+ } else if (totalScores[1] >= 6 && totalScores[1] > totalScores[0]) {
|
|
|
gameEnd = true;
|
|
gameEnd = true;
|
|
|
gameRes = new string[]{"失败", "胜利"};
|
|
gameRes = new string[]{"失败", "胜利"};
|
|
|
}
|
|
}
|