From 9672a4fe571924695b715ef53430afb7418de97f Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 3 Sep 2024 20:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E4=B9=8B=E5=89=8D=E5=88=A0goto?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=AF=BC=E8=87=B4hisPool=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E7=88=86=E7=82=B8=EF=BC=88=E4=B9=9F=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E9=81=93=E6=80=8E=E4=B9=88=E7=88=86=E7=9A=84=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E7=AE=A1=E4=BA=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/seqGenerators.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/parts/player/seqGenerators.lua b/parts/player/seqGenerators.lua index 6799d3b6..7c7abd6e 100644 --- a/parts/player/seqGenerators.lua +++ b/parts/player/seqGenerators.lua @@ -120,20 +120,17 @@ local seqGenerators={ -- Pick a mino from pool local tryTime=0 local r - repeat-- ::REPEAT_pickAgain:: - local pickAgain + repeat r=_poolPick()-- Random mino-index in pool + local duplicated for i=1,len do if r==history[i] then - tryTime=tryTime+1 - if tryTimehisLen -- Give mino to player & update history if history[1]~=0 then