细节完善

This commit is contained in:
kron
2025-07-16 17:55:11 +08:00
parent 5770fb2ce2
commit 0adc1fa73a
4 changed files with 16 additions and 12 deletions

View File

@@ -138,6 +138,9 @@ onLoad(async (options) => {
players.value = [...battleInfo.blueTeam, ...battleInfo.redTeam];
players.value.forEach((p) => {
playersScores.value[p.id] = p.arrows;
if (p.id === user.value.id) {
scores.value = p.arrows;
}
});
if (battleInfo.startTime) {
const remain = Date.now() / 1000 - battleInfo.startTime;
@@ -330,8 +333,8 @@ async function onReceiveMessage(messages = []) {
seq.value += 1;
timerSeq.value = 0;
tips.value = "请连续射出6支箭";
scores.value = [];
total.value = 90;
halfTimeTip.value = false;
}
if (msg.constructor === MESSAGETYPES.ToSomeoneShoot) {
if (battleType.value === 1) {