From 35d166a4e10c41f21d57a46573e9ecd168a6ffda Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sun, 14 Jan 2024 12:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E7=8E=87=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E9=80=89=E5=B0=86=E7=9A=84=E4=B8=A5=E9=87=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/game/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noname/game/index.js b/noname/game/index.js index b824aff41..f38cd8cb7 100644 --- a/noname/game/index.js +++ b/noname/game/index.js @@ -7135,14 +7135,14 @@ export class Game extends Uninstantable { event.avatars[i].classList.add('selecting'); } } - let rand2 = []; + let rand = []; for (let i = 0; i < event.config.width; i++) { for (let j = 0; j < event.config.width - i; j++) { - rand2.push(i); + rand.push(i); } } for (let i = 0; i < event.config.num; i++) { - let rand2 = rand2.randomGet(); + let rand2 = rand.randomGet(); for (let j = 0; j < rand2.length; j++) { if (rand2[j] == rand2) { rand2.splice(j--, 1);