modeData地位提升,模式环境变量target移入其中,大规模整理代码,可读性增强

This commit is contained in:
MrZ626
2021-03-23 19:11:05 +08:00
parent ac8a41004b
commit 374f2ab779
76 changed files with 356 additions and 373 deletions

View File

@@ -1,5 +1,4 @@
local format=string.format
local int=math.floor
return{
color=COLOR.magenta,
@@ -7,8 +6,7 @@ return{
drop=20,lock=60,
freshLimit=15,
b2bKill=true,
target=200,
dropPiece=PLY.check_attackReach,
function(P)if P.stat.atk>=200 then P:win("finish")end end,
bg="matrix",bgm="down",
},
load=function()
@@ -21,7 +19,7 @@ return{
mText(drawableText.atk,69,243)
mText(drawableText.eff,69,363)
end,
score=function(P)return{P.stat.atk<=200 and int(P.stat.atk)or 200,P.stat.time}end,
score=function(P)return{P.stat.atk<=200 and math.floor(P.stat.atk)or 200,P.stat.time}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]<b[2]end,
getRank=function(P)