挖掘模式开局10的行也使用eventSet

This commit is contained in:
MrZ626
2021-08-26 23:58:40 +08:00
parent 7ad386d28f
commit 726928aadc
5 changed files with 15 additions and 35 deletions

View File

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

View File

@@ -1,5 +1,5 @@
local function check_rise(P)
for _=1,math.min(8,100-P.stat.dig)-P.garbageBeneath do
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
@@ -12,16 +12,9 @@ return{
env={
pushSpeed=6,
dropPiece=check_rise,
eventSet='digBase',
bg='bg2',bgm='way',
},
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
mesDisp=function(P)
setFont(55)
mStr(100-P.stat.dig,63,265)

View File

@@ -9,16 +9,9 @@ return{
env={
pushSpeed=6,
dropPiece=check_rise,
eventSet='digBase',
bg='bg1',bgm='way',
},
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
mesDisp=function(P)
setFont(55)
mStr(10-P.stat.dig,63,265)

View File

@@ -1,5 +1,5 @@
local function check_rise(P)
for _=1,math.min(8,400-P.stat.dig)-P.garbageBeneath do
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
@@ -12,16 +12,9 @@ return{
env={
pushSpeed=6,
dropPiece=check_rise,
eventSet='digBase',
bg='bg2',bgm='way',
},
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
mesDisp=function(P)
setFont(55)
mStr(400-P.stat.dig,63,265)

View File

@@ -1,5 +1,5 @@
local function check_rise(P)
for _=1,math.min(8,40-P.stat.dig)-P.garbageBeneath do
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
@@ -12,16 +12,9 @@ return{
env={
pushSpeed=6,
dropPiece=check_rise,
eventSet='digBase',
bg='bg1',bgm='way',
},
load=function()
PLY.newPlayer(1)
local P=PLAYERS[1]
for _=1,10 do
P:garbageRise(21,1,P:getHolePos())
end
P.fieldBeneath=0
end,
mesDisp=function(P)
setFont(55)
mStr(40-P.stat.dig,63,265)