From ccf47c3c2f3835fb188115b3a927aa84ae91da2b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 17 Nov 2020 15:57:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8E=E8=BF=9B=E6=94=BB-=E6=9E=81?= =?UTF-8?q?=E9=99=90=E9=9A=BE=E5=BA=A6=EF=BC=8C=E9=99=8D=E4=BD=8E=E8=BF=9B?= =?UTF-8?q?=E6=94=BB-=E5=9B=B0=E9=9A=BE=E8=AF=84=E7=BA=A7=E8=A6=81?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/attacker_hard.lua | 10 +++++----- parts/modes/attacker_ultimate.lua | 7 ++----- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/parts/modes/attacker_hard.lua b/parts/modes/attacker_hard.lua index d102555c..1b2aadf6 100644 --- a/parts/modes/attacker_hard.lua +++ b/parts/modes/attacker_hard.lua @@ -52,11 +52,11 @@ return{ getRank=function(P) local W=P.modeData.event return - W>=100 and 5 or - W>=80 and 4 or - W>=60 and 3 or - W>=40 and 2 or - W>=20 and 1 or + W>=50 and 5 or + W>=40 and 4 or + W>=30 and 3 or + W>=20 and 2 or + W>=10 and 1 or W>=5 and 0 end, } \ No newline at end of file diff --git a/parts/modes/attacker_ultimate.lua b/parts/modes/attacker_ultimate.lua index e4600ea4..455e17c7 100644 --- a/parts/modes/attacker_ultimate.lua +++ b/parts/modes/attacker_ultimate.lua @@ -1,4 +1,3 @@ -local min=math.min return{ color=COLOR.lYellow, env={ @@ -10,19 +9,17 @@ return{ if P.atkBuffer.sum<4 then local p=#P.atkBuffer+1 local B,D=P.atkBuffer,P.modeData - local s,t + local s + local t=800-10*D.event--800~700~600~500 if D.event<10 then - t=800-10*D.event--800~700 B[p]= {pos=P:RND(5,6),amount=9,countdown=t,cd0=t,time=0,sent=false,lv=3} B[p+1]= {pos=P:RND(4,7),amount=11,countdown=t,cd0=t+62,time=0,sent=false,lv=4} s=20 elseif D.event<20 then - t=800-10*D.event--700~600 B[p]= {pos=P:RND(3,8),amount=11,countdown=t,cd0=t,time=0,sent=false,lv=4} B[p+1]= {pos=P:RND(4,7),amount=13,countdown=t,cd0=t+62,time=0,sent=false,lv=5} s=24 else - t=600-15*(min(D.event-20,10))--600~450 B[p]= {pos=P:RND(2)*9-8,amount=14,countdown=t,cd0=t,time=0,sent=false,lv=5} B[p+1]= {pos=P:RND(3,8),amount=14,countdown=t+62,cd0=t,time=0,sent=false,lv=5} s=28