细节完善
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user