From 1ca5fd720421ab887fcc81dca7888ead8cf2e10b Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 12 Oct 2021 02:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E6=97=A0?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=99=90=E5=88=B6=E7=9A=84=E6=B6=88=E5=9B=9B?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/eventsets/techrash_n.lua | 12 ++++++++++++ parts/modes/techrash_n.lua | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 parts/eventsets/techrash_n.lua create mode 100644 parts/modes/techrash_n.lua diff --git a/parts/eventsets/techrash_n.lua b/parts/eventsets/techrash_n.lua new file mode 100644 index 00000000..140a73e1 --- /dev/null +++ b/parts/eventsets/techrash_n.lua @@ -0,0 +1,12 @@ +return{ + mesDisp=function(P) + setFont(60) + mStr(P.stat.clear[7][4],63,250) + mText(drawableText.techrash,63,315) + end, + dropPiece=function(P) + if P.lastPiece.row>0 and P.lastPiece.row<4 then + P:lose() + end + end, +} diff --git a/parts/modes/techrash_n.lua b/parts/modes/techrash_n.lua new file mode 100644 index 00000000..10d165e9 --- /dev/null +++ b/parts/modes/techrash_n.lua @@ -0,0 +1,20 @@ +return{ + color=COLOR.lYellow, + env={ + drop=60,lock=60, + freshLimit=15, + ospin=false, + eventSet='techrash_n', + bg='matrix',bgm='vapor', + }, + getRank=function(P) + local T=P.stat.clear[7][4] + return + T>=100 and 5 or + T>=75 and 4 or + T>=50 and 3 or + T==30 and 2 or + T>=15 and 1 or + T>=5 and 0 + end, +}