调试多v多房间功能

This commit is contained in:
kron
2026-02-05 18:06:55 +08:00
parent 93c549109f
commit 4cfa097cc8
7 changed files with 32 additions and 121 deletions

View File

@@ -114,7 +114,7 @@ export const getBattleResultTips = (
) => {
const getRandomIndex = (len) => Math.floor(Math.random() * len);
if (gameMode === 1) {
if (mode === 1) {
if (mode <= 3) {
if (win) {
const tests = [
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fglywucyoh9zn.png",
@@ -136,7 +136,7 @@ export const getBattleResultTips = (
];
return tests[getRandomIndex(3)];
}
} else if (mode === 2) {
} else {
if (rank <= 3) {
const tests = [
"好成绩!全国排位赛等着你!",
@@ -148,7 +148,7 @@ export const getBattleResultTips = (
}
}
} else if (gameMode === 2) {
if (mode === 1) {
if (mode <= 3) {
if (win) {
const tests = [
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgtb29jbdus4g.png",
@@ -170,7 +170,7 @@ export const getBattleResultTips = (
];
return tests[getRandomIndex(3)];
}
} else if (mode === 2) {
} else {
if (score > 0) {
const tests = [
"王者一定属于你!",