2025-05-29 23:45:44 +08:00
|
|
|
export const MESSAGETYPES = {
|
2025-06-04 16:26:07 +08:00
|
|
|
ShootSyncMeArrowID: parseInt("0x789b6b0d"), // 2023451405
|
|
|
|
|
ShootSyncMePracticeID: parseInt("0xD88AE05E"), // 3632980062
|
|
|
|
|
WaitForAllReady: parseInt("0x615C13BE"), // 1633424318
|
|
|
|
|
AllReady: parseInt("0x1CCB49FD"), // 483084797
|
2025-06-09 01:17:18 +08:00
|
|
|
MeleeAllReady: parseInt("0x37132BD5"), // 924003285
|
2025-06-04 16:26:07 +08:00
|
|
|
ShootResult: parseInt("0xAA0795E2"), // 2852623842
|
|
|
|
|
CurrentRoundEnded: parseInt("0x3E2CE041"), // 1043128385
|
|
|
|
|
ToSomeoneShoot: parseInt("0x077ACD1A"), // 125488410
|
|
|
|
|
SomeGuyIsReady: parseInt("0xAEE8C236"), // 2934489654
|
|
|
|
|
MatchOver: parseInt("0xB7815EEF"), // 3078708975
|
2025-06-22 15:04:10 +08:00
|
|
|
StartCount: parseInt("0xD7B0DD2F"), // 3618692399
|
2025-06-26 22:54:17 +08:00
|
|
|
FinalShoot: parseInt("0x5953C8A1"), // 1498663073
|
2025-06-08 20:59:41 +08:00
|
|
|
RoundPoint: 4061248646,
|
2025-06-13 14:05:30 +08:00
|
|
|
UserEnterRoom: 2133805521,
|
|
|
|
|
UserExitRoom: 3896523333,
|
2025-06-16 00:30:56 +08:00
|
|
|
RoomDestroy: 3617539277,
|
2025-06-17 21:34:41 +08:00
|
|
|
SomeoneComplete: 2921416944,
|
|
|
|
|
HalfTimeOver: 388606440,
|
2025-07-03 21:13:55 +08:00
|
|
|
BackToGame: 1899960424,
|
2025-07-06 00:42:10 +08:00
|
|
|
FinalShootResult: 3813452544,
|
2025-07-12 17:12:24 +08:00
|
|
|
PaySuccess: 3793388244,
|
2025-07-22 09:36:38 +08:00
|
|
|
RankUpdate: 1121669910,
|
|
|
|
|
LvlUpdate: 3958625354,
|
2025-06-17 16:02:29 +08:00
|
|
|
};
|
|
|
|
|
|
2025-06-26 23:41:23 +08:00
|
|
|
export const topThreeColors = ["#FFD947", "#D2D2D2", "#FFA515"];
|
|
|
|
|
|
2025-06-17 16:02:29 +08:00
|
|
|
export const getMessageTypeName = (id) => {
|
|
|
|
|
for (let key in MESSAGETYPES) {
|
|
|
|
|
if (MESSAGETYPES[key] === id) {
|
|
|
|
|
return key;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
2025-06-04 16:26:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const roundsName = {
|
|
|
|
|
0: "一",
|
|
|
|
|
1: "一",
|
|
|
|
|
2: "二",
|
|
|
|
|
3: "三",
|
|
|
|
|
4: "四",
|
|
|
|
|
5: "五",
|
2025-05-29 23:45:44 +08:00
|
|
|
};
|
2025-06-26 13:41:40 +08:00
|
|
|
|
|
|
|
|
export const meleeAvatarColors = [
|
|
|
|
|
"#364469",
|
|
|
|
|
"#692735",
|
|
|
|
|
"#934B4B",
|
|
|
|
|
"#A98B69",
|
|
|
|
|
"#8268A2",
|
|
|
|
|
"#9C538F",
|
|
|
|
|
"#6870BB",
|
|
|
|
|
"#4B8593",
|
|
|
|
|
"#9BA969",
|
|
|
|
|
"#DCCE6D",
|
|
|
|
|
];
|
2025-07-01 00:25:17 +08:00
|
|
|
|
|
|
|
|
export const orderStatusNames = {
|
|
|
|
|
1: "待付款",
|
|
|
|
|
2: "已付款",
|
|
|
|
|
3: "已发货",
|
|
|
|
|
4: "已完成",
|
|
|
|
|
5: "已关闭",
|
|
|
|
|
6: "申请退款",
|
|
|
|
|
7: "退款中",
|
|
|
|
|
8: "已退款",
|
|
|
|
|
9: "拒绝退款",
|
|
|
|
|
};
|
2025-07-05 19:23:38 +08:00
|
|
|
|
2025-07-14 16:44:26 +08:00
|
|
|
export const getStatusColor = (status) => {
|
|
|
|
|
switch (status) {
|
|
|
|
|
case 1:
|
|
|
|
|
return "#EF4848";
|
|
|
|
|
case 4:
|
|
|
|
|
return "#35CD67";
|
|
|
|
|
default:
|
|
|
|
|
return "#999999";
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2025-07-05 19:23:38 +08:00
|
|
|
export const directionAdjusts = {
|
|
|
|
|
AdjustLowerRight: "向右下方调瞄",
|
|
|
|
|
AdjustDown: "向下方调瞄",
|
|
|
|
|
AdjustLowerLeft: "向左下方调瞄",
|
|
|
|
|
AdjustLeft: "向左侧调瞄",
|
|
|
|
|
AdjustUpperLeft: "向左上侧调瞄",
|
|
|
|
|
AdjustUp: "向上方调瞄",
|
|
|
|
|
AdjustUpperRight: "向右上方调瞄",
|
|
|
|
|
AdjustRight: "向右侧调瞄",
|
|
|
|
|
};
|
2025-07-16 15:32:49 +08:00
|
|
|
|
|
|
|
|
export const getBattleResultTips = (
|
|
|
|
|
gameMode,
|
|
|
|
|
mode,
|
|
|
|
|
{ rank = 0, score = 0, win = false }
|
|
|
|
|
) => {
|
|
|
|
|
const getRandomIndex = (len) => Math.floor(Math.random() * len);
|
|
|
|
|
if (gameMode === 1) {
|
|
|
|
|
if (mode === 1) {
|
|
|
|
|
if (win) {
|
|
|
|
|
const tests = [
|
2025-08-04 18:36:44 +08:00
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fglywucyoh9zn.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgls1trzqneeh.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgm4fmv0tqico.png",
|
2025-08-01 15:25:51 +08:00
|
|
|
// "你是朋友中的佼佼者哟!",
|
|
|
|
|
// "你成功击败好友,成为大赢家!",
|
|
|
|
|
// "你将好友“一举拿下”,超神无疑!",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
|
|
|
|
return tests[getRandomIndex(3)];
|
|
|
|
|
} else {
|
|
|
|
|
const tests = [
|
2025-08-04 18:36:44 +08:00
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmb12vjkonvzm.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmo5gpiecqqgu.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmtk8hjwqoecz.png",
|
2025-08-01 15:25:51 +08:00
|
|
|
// "失误啦失误啦,再多来几局吧~",
|
|
|
|
|
// "惜败好友,下次再战定能反超!",
|
|
|
|
|
// "友谊第一,下场胜利属于你!",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
|
|
|
|
return tests[getRandomIndex(3)];
|
|
|
|
|
}
|
|
|
|
|
} else if (mode === 2) {
|
2025-07-17 13:55:04 +08:00
|
|
|
if (rank <= 3) {
|
2025-07-16 15:32:49 +08:00
|
|
|
const tests = [
|
2025-07-17 13:55:04 +08:00
|
|
|
"好成绩!全国排位赛等着你!",
|
|
|
|
|
"持续练习,就会迎来更多高光时刻!",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
2025-07-17 13:55:04 +08:00
|
|
|
return tests[getRandomIndex(2)];
|
2025-07-16 15:32:49 +08:00
|
|
|
} else {
|
2025-07-17 13:55:04 +08:00
|
|
|
return "每日练习打卡,争取下次脱颖而出!";
|
2025-07-16 15:32:49 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else if (gameMode === 2) {
|
|
|
|
|
if (mode === 1) {
|
|
|
|
|
if (win) {
|
|
|
|
|
const tests = [
|
2025-08-04 18:36:44 +08:00
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgtb29jbdus4g.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgtbu8fzpbh3z.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq1fgtbu8fzpbh3z.png",
|
2025-08-01 15:25:51 +08:00
|
|
|
// "你已经奔跑在通向王者的路上了!",
|
|
|
|
|
// "射灵星球最闪耀的前进者!",
|
|
|
|
|
// "赞!你真是越战越勇",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
|
|
|
|
return tests[getRandomIndex(3)];
|
|
|
|
|
} else {
|
|
|
|
|
const tests = [
|
2025-08-04 18:36:44 +08:00
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmovnd33hz5yj.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmtu558juplj9.png",
|
|
|
|
|
"https://static.shelingxingqiu.com/attachment/2025-08-01/dbqq0gmuhb5aofghg4.png",
|
2025-08-01 15:25:51 +08:00
|
|
|
// "失败是成功之母,儿子在等你!",
|
|
|
|
|
// "人生得意须尽欢,不过此关心不甘!",
|
|
|
|
|
// "这回一定是打开方式不对。再来!",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
|
|
|
|
return tests[getRandomIndex(3)];
|
|
|
|
|
}
|
|
|
|
|
} else if (mode === 2) {
|
2025-07-17 13:55:04 +08:00
|
|
|
if (score > 0) {
|
2025-07-16 15:32:49 +08:00
|
|
|
const tests = [
|
2025-07-17 13:55:04 +08:00
|
|
|
"王者一定属于你!",
|
|
|
|
|
"高光时刻!继续保持!",
|
|
|
|
|
"射灵世界的佼佼者!",
|
2025-07-16 15:32:49 +08:00
|
|
|
];
|
2025-07-17 13:55:04 +08:00
|
|
|
return tests[getRandomIndex(3)];
|
2025-07-16 15:32:49 +08:00
|
|
|
} else {
|
2025-07-17 13:55:04 +08:00
|
|
|
const tests = [
|
|
|
|
|
"再来一次,定能脱颖而出!",
|
|
|
|
|
"加强练习,争取越战越勇",
|
|
|
|
|
"人生走过的每一步都算数",
|
|
|
|
|
];
|
|
|
|
|
return tests[getRandomIndex(3)];
|
2025-07-16 15:32:49 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return "";
|
|
|
|
|
};
|
2025-08-13 16:44:25 +08:00
|
|
|
|
|
|
|
|
export const RoundImages = {
|
|
|
|
|
"round1":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slggifbnw9snvs.png",
|
|
|
|
|
"round2":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgf0swue5xzpd.png",
|
|
|
|
|
"round3":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slglkylhmq8beb.png",
|
|
|
|
|
"round4":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slggc88nasmxf5.png",
|
|
|
|
|
"round5":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgeloitb8mixf.png",
|
|
|
|
|
"round6":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgsjbyyuu1des.png",
|
|
|
|
|
"round7":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgdysd1wqulj5.png",
|
|
|
|
|
"round8":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgm82ny3qjd8m.png",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const RoundGoldImages = {
|
|
|
|
|
"round1":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slg7kfzzwwiwcb.png",
|
|
|
|
|
"round2":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgs5htghfh3a9.png",
|
|
|
|
|
"round3":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgc9ge3paqkba.png",
|
|
|
|
|
"round4":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgehduk96yurp.png",
|
|
|
|
|
"round5":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgefz3hdmwbnz.png",
|
|
|
|
|
"round6":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgeyb4cqwezgc.png",
|
|
|
|
|
"round7":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slggu3tlh97v5p.png",
|
|
|
|
|
"round8":"https://static.shelingxingqiu.com/attachment/2025-08-13/dc12slgszmdtmaotch.png",
|
|
|
|
|
}
|