整理代码,return后面跟空格

This commit is contained in:
MrZ_26
2022-10-29 00:53:55 +08:00
parent 0df17cb4ee
commit dd872a72b2
207 changed files with 316 additions and 316 deletions

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(P.modeData.wave,63,200)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(P.modeData.wave,63,200)

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.atk>0 then
P:receive(nil,P.lastPiece.atk,0,generateLine(P.holeRND:random(10)))

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.atk>0 then
P:receive(nil,P.lastPiece.atk,120,generateLine(P.holeRND:random(10)))

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.atk>0 then
P:receive(nil,P.lastPiece.atk,30,generateLine(P.holeRND:random(10)))

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.atk>0 then
P:receive(nil,P.lastPiece.atk,60,generateLine(P.holeRND:random(10)))

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.row>0 then
for _=1,#P.clearedRow do

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
mText(TEXTOBJ.techrash,63,420)
setFont(75)

View File

@@ -1,6 +1,6 @@
local rem=table.remove
return{
return {
mesDisp=function(P)
setFont(45)
GC.mStr(P.combo,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.row>0 then
for _=1,#P.clearedRow do

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.lastPiece.row==0 then
P:lose()

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(45)
GC.mStr(("%.1f"):format(P.stat.atk),63,190)

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.garbageBeneath==0 then
local D=P.modeData

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=10-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=100-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=1000-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=20-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=200-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=400-P.stat.row

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if #PLY_ALIVE>1 then
P.control=false

View File

@@ -1,4 +1,4 @@
return{
return {
hook_drop=function(P)
if P.stat.piece%7==0 and #PLY_ALIVE>1 then
P.control=false

View File

@@ -23,7 +23,7 @@ local function GetGravity(lvl)
lvl<29 and 2 or
1
end
return{
return {
das=16,arr=6,
sddas=6,sdarr=6,
irs=false,ims=false,

View File

@@ -23,7 +23,7 @@ local function GetGravity(lvl)
lvl<29 and 2 or
1
end
return{
return {
das=16,arr=6,
sddas=3,sdarr=3,
irs=false,ims=false,

View File

@@ -23,7 +23,7 @@ local function GetGravity(lvl)
lvl<29 and 2 or
1
end
return{
return {
das=16,arr=6,
sddas=2,sdarr=2,
irs=false,ims=false,

View File

@@ -4,7 +4,7 @@ local function GetLevelStr(lvl)
lvl=lvl%256
return list[lvl]
end
return{
return {
das=16,arr=6,
sddas=1,sdarr=1,
irs=false,ims=false,

View File

@@ -1,4 +1,4 @@
return{
return {
drop=5,lock=60,
fall=6,
mesDisp=function(P)

View File

@@ -1,4 +1,4 @@
return{
return {
drop=30,lock=60,
fall=10,
mesDisp=function(P)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(100-P.stat.dig,63,265)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(10-P.stat.dig,63,265)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(400-P.stat.dig,63,265)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
GC.mStr(40-P.stat.dig,63,265)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,6 +1,6 @@
local dropSpeed={50,40,30,25,20,15,12,9,7,5,4,3,2,1,1,.5,.5,.25,.25}
return{
return {
drop=60,
wait=8,
fall=20,

View File

@@ -10,7 +10,7 @@ local function getRollGoal(P)
return goal+(rem>0.3 and 4 or rem*10)
end
return{
return {
drop=0,lock=15,
wait=15,fall=6,
noTele=true,

View File

@@ -1,4 +1,4 @@
return{
return {
drop=0,lock=12,
wait=10,fall=10,
noTele=true,

View File

@@ -119,7 +119,7 @@ local function getRollGoal()
end
end
return{
return {
drop=64,
lock=30,
wait=23,

View File

@@ -2,7 +2,7 @@ local death_lock={12,11,10,9,8, 8,8,7,7,6}
local death_wait={10,9, 8, 7,6, 7,6,6,5,5}
local death_fall={10,9, 8, 7,6, 7,6,5,5,5}
return{
return {
drop=0,
lock=death_lock[1],
wait=death_wait[1],

View File

@@ -5,7 +5,7 @@ local inv_hide={20,17,14,11, 8, 5, 3, 2, 1, 0}
local hidetimer=0
local held=false
return{
return {
drop=0,
lock=inv_lock[1],
wait=inv_wait[1],

View File

@@ -2,7 +2,7 @@ local rush_lock={20,18,16,15,14, 14,13,12,11,11}
local rush_wait={12,11,11,10,10, 10,10, 9, 9, 9}
local rush_fall={18,16,14,13,12, 12,11,11,10,10}
return{
return {
drop=0,
lock=rush_lock[1],
wait=rush_wait[1],

View File

@@ -1,4 +1,4 @@
return{
return {
heightLimit=4,
mesDisp=function(P)
setFont(60)

View File

@@ -41,7 +41,7 @@ local function _check(P)
end
end
end
return{
return {
sequence='none',
RS="SRS",
mesDisp=function(P)

View File

@@ -34,7 +34,7 @@ local function _check(P)
end
end
end
return{
return {
sequence='none',
RS="SRS",
mesDisp=function(P)

View File

@@ -1,4 +1,4 @@
return{
return {
layout='royale',
fkey1=function(P)
P:changeAtkMode(P.atkMode<3 and P.atkMode+2 or 5-P.atkMode)

View File

@@ -45,7 +45,7 @@ local function generateGuide(num)
end
end
return{
return {
fkey1=function(P) P.modeData.showGuide=not P.modeData.showGuide end,
mesDisp=function(P)
mText(TEXTOBJ.grade,63,190)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(45)
GC.mStr(("%.1f"):format(P.stat.atk),63,270)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(55)
local r=40-P.stat.row

View File

@@ -1,7 +1,7 @@
local oppo={
[1]=7,[7]=1,[11]=3,[3]=11,[14]=14,[4]=4,[9]=9,
}
return{
return {
skin={
1,7,11,3,14,4,9,
1,7,2,6,10,2,13,5,9,15,10,11,3,12,2,16,8,4,

View File

@@ -1,4 +1,4 @@
return{
return {
fieldH=20,
fillClear=false,
mesDisp=function(P)

View File

@@ -1,4 +1,4 @@
return{
return {
fieldH=21,
fillClear=false,
mesDisp=function(P)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.stat.clear[7][4],63,250)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.techrash,63,250)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.tsd,63,250)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.tsd,63,250)

View File

@@ -1,4 +1,4 @@
return{
return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.tsd,63,250)

View File

@@ -1,7 +1,7 @@
local warnTime={60,90,105,115,116,117,118,119,120}
for i=1,#warnTime do warnTime[i]=warnTime[i]*60 end
return{
return {
mesDisp=function(P)
GC.setLineWidth(2)
GC.setColor(.98,.98,.98,.8)