From 27ce516dd9f2d8a66621a4c3c9aa54ed488333e0 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 22 Jun 2021 20:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E7=A0=94=E6=A8=A1=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=9B=AE=E6=A0=87=E5=90=8E=E8=AF=84=E7=BA=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=9C=AA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/tech_finesse.lua | 19 +++++++++---------- parts/modes/tech_finesse_f.lua | 19 +++++++++---------- parts/modes/tech_h.lua | 19 +++++++++---------- parts/modes/tech_h_plus.lua | 19 +++++++++---------- parts/modes/tech_l.lua | 19 +++++++++---------- parts/modes/tech_l_plus.lua | 19 +++++++++---------- parts/modes/tech_n.lua | 19 +++++++++---------- parts/modes/tech_n_plus.lua | 19 +++++++++---------- 8 files changed, 72 insertions(+), 80 deletions(-) diff --git a/parts/modes/tech_finesse.lua b/parts/modes/tech_finesse.lua index f0885af8..4d2ff558 100644 --- a/parts/modes/tech_finesse.lua +++ b/parts/modes/tech_finesse.lua @@ -19,23 +19,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_finesse_f.lua b/parts/modes/tech_finesse_f.lua index 46313dc5..5ae67ecc 100644 --- a/parts/modes/tech_finesse_f.lua +++ b/parts/modes/tech_finesse_f.lua @@ -32,23 +32,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_h.lua b/parts/modes/tech_h.lua index 919f53a0..3a1533e2 100644 --- a/parts/modes/tech_h.lua +++ b/parts/modes/tech_h.lua @@ -17,23 +17,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_h_plus.lua b/parts/modes/tech_h_plus.lua index 6a15fdd0..432bada5 100644 --- a/parts/modes/tech_h_plus.lua +++ b/parts/modes/tech_h_plus.lua @@ -29,23 +29,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<130 and 5 or - T<160 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_l.lua b/parts/modes/tech_l.lua index 9ebeb62c..e3f4ef53 100644 --- a/parts/modes/tech_l.lua +++ b/parts/modes/tech_l.lua @@ -17,23 +17,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<130 and 5 or - T<160 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_l_plus.lua b/parts/modes/tech_l_plus.lua index 08d730e3..b9231872 100644 --- a/parts/modes/tech_l_plus.lua +++ b/parts/modes/tech_l_plus.lua @@ -29,23 +29,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<140 and 5 or - T<180 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_n.lua b/parts/modes/tech_n.lua index 73a8c033..5713361b 100644 --- a/parts/modes/tech_n.lua +++ b/parts/modes/tech_n.lua @@ -17,23 +17,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/tech_n_plus.lua b/parts/modes/tech_n_plus.lua index d72d01fd..e407d61d 100644 --- a/parts/modes/tech_n_plus.lua +++ b/parts/modes/tech_n_plus.lua @@ -29,23 +29,22 @@ return{ mText(drawableText.atk,69,243) mText(drawableText.eff,69,363) end, - score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}end, + score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end, scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + local A=P.stat.atk + if A>=100 then local T=P.stat.time return - T<130 and 5 or - T<160 and 4 or - 3 + T<50 and 5 or + T<70 and 4 or + T<100 and 3 or + 2 else return - L>=150 and 3 or - L>=100 and 2 or - L>=60 and 1 or - L>=20 and 0 + A>=60 and 1 or + A>=30 and 0 end end, } \ No newline at end of file