From 416534b99c86afcf1b64155bd76168ef0fdc1fb2 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 16 Mar 2021 20:02:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9B=9B=E4=B8=AAbackfire?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E5=90=84=E7=A7=8D=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/backfire_h.lua | 38 +++++++++++++++++++------------------- parts/modes/backfire_l.lua | 34 +++++++++++++++++----------------- parts/modes/backfire_n.lua | 35 +++++++++++++++++------------------ parts/modes/backfire_u.lua | 36 ++++++++++++++++++------------------ 4 files changed, 71 insertions(+), 72 deletions(-) diff --git a/parts/modes/backfire_h.lua b/parts/modes/backfire_h.lua index e3456700..eabb095c 100644 --- a/parts/modes/backfire_h.lua +++ b/parts/modes/backfire_h.lua @@ -1,43 +1,43 @@ -local format=string.format return{ - color=COLOR.lGrey, + color=COLOR.magenta, env={ - drop=30,lock=60, + drop=10,lock=60, + freshLimit=15, dropPiece=function(P) if P.lastPiece.atk>0 then - P:receive(nil,P.lastPiece.atk,60,generateLine(P:RND(2,9))) - if P.stat.atk>=200 then - P:win("finish") - end + P:receive(nil,P.lastPiece.atk,60,generateLine(P:RND(10))) + end + if P.stat.atk>=100 then + P:win("finish") end end, - bg="tunnel",bgm="warped", + bg="tunnel",bgm="echo", }, pauseLimit=true, load=function() PLY.newPlayer(1) end, mesDisp=function(P) - setFont(45) - mStr(format("%.1f",P.stat.atk),69,247) - mText(drawableText.atk,69,300) + setFont(65) + mStr(P.stat.atk,69,310) + mText(drawableText.atk,69,375) 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.atk}end, scoreDisp=function(D)return D[1].." Attack "..TIMESTR(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + if L>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - T<200 and 3 or - 2 + T<45 and 5 or + T<60 and 4 or + T<90 and 3 or + T<120 and 2 or + 1 else return - L>=126 and 1 or - L>=30 and 0 + L>=50 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/backfire_l.lua b/parts/modes/backfire_l.lua index 1d1f406d..1697c6b4 100644 --- a/parts/modes/backfire_l.lua +++ b/parts/modes/backfire_l.lua @@ -1,14 +1,14 @@ -local format=string.format return{ - color=COLOR.lGrey, + color=COLOR.red, env={ - drop=30,lock=60, + drop=5,lock=45, + freshLimit=15, dropPiece=function(P) if P.lastPiece.atk>0 then P:receive(nil,P.lastPiece.atk,30,generateLine(P:RND(10))) - if P.stat.atk>=200 then - P:win("finish") - end + end + if P.stat.atk>=100 then + P:win("finish") end end, bg="blackhole",bgm="echo", @@ -18,26 +18,26 @@ return{ PLY.newPlayer(1) end, mesDisp=function(P) - setFont(45) - mStr(format("%.1f",P.stat.atk),69,247) - mText(drawableText.atk,69,300) + setFont(65) + mStr(P.stat.atk,69,310) + mText(drawableText.atk,69,375) 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.atk}end, scoreDisp=function(D)return D[1].." Attack "..TIMESTR(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + if L>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - T<200 and 3 or - 2 + T<50 and 5 or + T<70 and 4 or + T<110 and 3 or + T<150 and 2 or + 1 else return - L>=126 and 1 or - L>=30 and 0 + L>=50 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/backfire_n.lua b/parts/modes/backfire_n.lua index 83393380..e25fd631 100644 --- a/parts/modes/backfire_n.lua +++ b/parts/modes/backfire_n.lua @@ -1,43 +1,42 @@ -local format=string.format return{ - color=COLOR.lGrey, + color=COLOR.green, env={ drop=30,lock=60, dropPiece=function(P) if P.lastPiece.atk>0 then - P:receive(nil,P.lastPiece.atk,120,generateLine(P:RND(3,8))) - if P.stat.atk>=200 then - P:win("finish") - end + P:receive(nil,P.lastPiece.atk,120,generateLine(P:RND(10))) + end + if P.stat.atk>=100 then + P:win("finish") end end, - bg="tunnel",bgm="warped", + bg="tunnel",bgm="echo", }, pauseLimit=true, load=function() PLY.newPlayer(1) end, mesDisp=function(P) - setFont(45) - mStr(format("%.1f",P.stat.atk),69,247) - mText(drawableText.atk,69,300) + setFont(65) + mStr(P.stat.atk,69,310) + mText(drawableText.atk,69,375) 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.atk}end, scoreDisp=function(D)return D[1].." Attack "..TIMESTR(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + if L>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - T<200 and 3 or - 2 + T<45 and 5 or + T<60 and 4 or + T<90 and 3 or + T<120 and 2 or + 1 else return - L>=126 and 1 or - L>=30 and 0 + L>=50 and 0 end end, } \ No newline at end of file diff --git a/parts/modes/backfire_u.lua b/parts/modes/backfire_u.lua index 7788fdba..8eb63711 100644 --- a/parts/modes/backfire_u.lua +++ b/parts/modes/backfire_u.lua @@ -1,14 +1,14 @@ -local format=string.format return{ - color=COLOR.lGrey, + color=COLOR.lYellow, env={ - drop=30,lock=60, + drop=2,lock=30, + freshLimit=10, dropPiece=function(P) if P.lastPiece.atk>0 then - P:receive(nil,math.floor(P.lastPiece.atk*1.5),0,generateLine(P:RND(10))) - if P.stat.atk>=200 then - P:win("finish") - end + P:receive(nil,P.lastPiece.atk,0,generateLine(P:RND(10))) + end + if P.stat.atk>=100 then + P:win("finish") end end, bg="blackhole",bgm="echo", @@ -18,26 +18,26 @@ return{ PLY.newPlayer(1) end, mesDisp=function(P) - setFont(45) - mStr(format("%.1f",P.stat.atk),69,247) - mText(drawableText.atk,69,300) + setFont(65) + mStr(P.stat.atk,69,310) + mText(drawableText.atk,69,375) 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.atk}end, scoreDisp=function(D)return D[1].." Attack "..TIMESTR(D[2])end, comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]=200 then + if L>=100 then local T=P.stat.time return - T<120 and 5 or - T<150 and 4 or - T<200 and 3 or - 2 + T<60 and 5 or + T<80 and 4 or + T<120 and 3 or + T<180 and 2 or + 1 else return - L>=126 and 1 or - L>=30 and 0 + L>=50 and 0 end end, } \ No newline at end of file