From 4548730df2e887ccbba9cb1541d001276a5293a6 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 3 Apr 2021 01:11:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86master=5Fex=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E7=BB=93=E6=9D=9F=E5=89=8D=E5=88=86?= =?UTF-8?q?=E6=95=B0=E4=B8=8A=E9=99=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/master_extra.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/parts/modes/master_extra.lua b/parts/modes/master_extra.lua index a72866c2..65574c51 100644 --- a/parts/modes/master_extra.lua +++ b/parts/modes/master_extra.lua @@ -1,11 +1,11 @@ local sectionName={"D","C","B","A","A+","S-","S","S+","SS","SS","SS","U","U","U","X"} local function score(P) - --If Less then MM + --If Less then X if P.modeData.rankScore<130 then local R=#P.clearedRow if R>0 then if R==4 then R=10 end--Techrash bonus - P.modeData.rankScore=math.min(P.modeData.rankScore+R,120) + P.modeData.rankScore=math.min(P.modeData.rankScore+R,130) P.modeData.rankName=sectionName[math.floor(P.modeData.rankScore/10)+1] end end @@ -56,6 +56,12 @@ return{ comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]>b[2]end, getRank=function(P) P=P.modeData.rankScore - return P==140 and 5 or P>=110 and 4 or P>=80 and 3 or P>=50 and 2 or P>=30 and 1 or P>=10 and 0 + return + P==140 and 5 or + P>=110 and 4 or + P>=80 and 3 or + P>=50 and 2 or + P>=30 and 1 or + P>=10 and 0 end, } \ No newline at end of file