挖掘模式也使用独立规则包,可以对战使用

This commit is contained in:
MrZ626
2021-09-01 03:14:37 +08:00
parent e5287d876b
commit 5c8b80741f
11 changed files with 83 additions and 67 deletions

View File

@@ -1,8 +0,0 @@
return{
task=function(P)
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
}

View File

@@ -0,0 +1,20 @@
return{
mesDisp=function(P)
setFont(55)
mStr(100-P.stat.dig,63,265)
end,
dropPiece=function(P)
for _=1,math.min(100,100-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==100 then
P:win('finish')
end
end,
task=function(P)
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
}

View File

@@ -0,0 +1,17 @@
return{
mesDisp=function(P)
setFont(55)
mStr(10-P.stat.dig,63,265)
end,
dropPiece=function(P)
if P.stat.dig==10 then
P:win('finish')
end
end,
task=function(P)
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
}

View File

@@ -0,0 +1,20 @@
return{
mesDisp=function(P)
setFont(55)
mStr(400-P.stat.dig,63,265)
end,
dropPiece=function(P)
for _=1,math.min(10,400-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==400 then
P:win('finish')
end
end,
task=function(P)
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
}

View File

@@ -0,0 +1,20 @@
return{
mesDisp=function(P)
setFont(55)
mStr(40-P.stat.dig,63,265)
end,
dropPiece=function(P)
for _=1,math.min(10,40-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==40 then
P:win('finish')
end
end,
task=function(P)
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
}

View File

@@ -1,22 +1,8 @@
local function check_rise(P)
for _=1,math.min(10,100-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==100 then
P:win('finish')
end
end
return{
color=COLOR.green,
env={
pushSpeed=6,
dropPiece=check_rise,
mesDisp=function(P)
setFont(55)
mStr(100-P.stat.dig,63,265)
end,
eventSet='digBase',
eventSet='dig_100L',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,

View File

@@ -1,19 +1,8 @@
local function check_rise(P)
if P.stat.dig==10 then
P:win('finish')
end
end
return{
color=COLOR.cyan,
env={
pushSpeed=6,
dropPiece=check_rise,
mesDisp=function(P)
setFont(55)
mStr(10-P.stat.dig,63,265)
end,
eventSet='digBase',
eventSet='dig_10L',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,

View File

@@ -1,22 +1,8 @@
local function check_rise(P)
for _=1,math.min(10,400-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==400 then
P:win('finish')
end
end
return{
color=COLOR.orange,
env={
pushSpeed=6,
dropPiece=check_rise,
mesDisp=function(P)
setFont(55)
mStr(400-P.stat.dig,63,265)
end,
eventSet='digBase',
eventSet='dig_400L',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,

View File

@@ -1,22 +1,8 @@
local function check_rise(P)
for _=1,math.min(10,40-P.stat.dig)-P.garbageBeneath do
P:garbageRise(21,1,P:getHolePos())
end
if P.stat.dig==40 then
P:win('finish')
end
end
return{
color=COLOR.lBlue,
env={
pushSpeed=6,
dropPiece=check_rise,
mesDisp=function(P)
setFont(55)
mStr(40-P.stat.dig,63,265)
end,
eventSet='digBase',
eventSet='dig_40L',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,

View File

@@ -23,7 +23,7 @@ local sList={
lock={0,1,2,3,4,5,6,7,8,9,10,12,14,16,18,20,25,30,40,60,180,1e99},
wait={0,1,2,3,4,5,6,7,8,10,15,20,30,60},
fall={0,1,2,3,4,5,6,7,8,10,15,20,30,60},
eventSet={'X','attacker_h','attacker_u','backfire_0','backfire_120','backfire_30','backfire_60','checkAttack_100','checkLine_10','checkLine_20','checkLine_40','checkLine_100','checkLine_200','checkLine_400','checkLine_1000','checkTurn_1','checkTurn_7','classic_fast','defender_n','defender_l','dig_h','dig_u','marathon_n','marathon_h','master_ex','master_final','master_h','master_n','master_ph','pctrain_n','pctrain_l','pc_inf','rhythm_e','rhythm_h','rhythm_u','survivor_e','survivor_n','survivor_h','survivor_l','survivor_u','tsd_e','tsd_h','tsd_u','ultra'},
eventSet={'X','attacker_h','attacker_u','backfire_0','backfire_120','backfire_30','backfire_60','checkAttack_100','checkLine_10','checkLine_20','checkLine_40','checkLine_100','checkLine_200','checkLine_400','checkLine_1000','checkTurn_1','checkTurn_7','classic_fast','defender_n','defender_l','dig_10l','dig_40l','dig_100l','dig_400l','dig_h','dig_u','marathon_n','marathon_h','master_ex','master_final','master_h','master_n','master_ph','pctrain_n','pctrain_l','pc_inf','rhythm_e','rhythm_h','rhythm_u','survivor_e','survivor_n','survivor_h','survivor_l','survivor_u','tsd_e','tsd_h','tsd_u','ultra'},
}
local scene={}

View File

@@ -20,7 +20,7 @@ local sList={
lock={0,1,2,3,4,5,6,7,8,9,10,12,14,16,18,20,25,30,40,60,180,1e99},
wait={0,1,2,3,4,5,6,7,8,10,15,20,30,60},
fall={0,1,2,3,4,5,6,7,8,10,15,20,30,60},
eventSet={'X','attacker_h','attacker_u','backfire_0','backfire_120','backfire_30','backfire_60','checkAttack_100','checkLine_10','checkLine_20','checkLine_40','checkLine_100','checkLine_200','checkLine_400','checkLine_1000','checkTurn_1','checkTurn_7','classic_fast','defender_n','defender_l','dig_h','dig_u','marathon_n','marathon_h','master_ex','master_final','master_h','master_n','master_ph','pctrain_n','pctrain_l','pc_inf','rhythm_e','rhythm_h','rhythm_u','survivor_e','survivor_n','survivor_h','survivor_l','survivor_u','tsd_e','tsd_h','tsd_u','ultra'},
eventSet={'X','attacker_h','attacker_u','backfire_0','backfire_120','backfire_30','backfire_60','checkAttack_100','checkLine_10','checkLine_20','checkLine_40','checkLine_100','checkLine_200','checkLine_400','checkLine_1000','checkTurn_1','checkTurn_7','classic_fast','defender_n','defender_l','dig_10l','dig_40l','dig_100l','dig_400l','dig_h','dig_u','marathon_n','marathon_h','master_ex','master_final','master_h','master_n','master_ph','pctrain_n','pctrain_l','pc_inf','rhythm_e','rhythm_h','rhythm_u','survivor_e','survivor_n','survivor_h','survivor_l','survivor_u','tsd_e','tsd_h','tsd_u','ultra'},
}
local scene={}