挖掘模式开局10的行也使用eventSet
This commit is contained in:
8
parts/eventsets/digBase.lua
Normal file
8
parts/eventsets/digBase.lua
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
return{
|
||||||
|
task=function(P)
|
||||||
|
for _=1,10 do
|
||||||
|
P:garbageRise(21,1,P:getHolePos())
|
||||||
|
end
|
||||||
|
P.fieldBeneath=0
|
||||||
|
end,
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
local function check_rise(P)
|
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())
|
P:garbageRise(21,1,P:getHolePos())
|
||||||
end
|
end
|
||||||
if P.stat.dig==100 then
|
if P.stat.dig==100 then
|
||||||
@@ -12,16 +12,9 @@ return{
|
|||||||
env={
|
env={
|
||||||
pushSpeed=6,
|
pushSpeed=6,
|
||||||
dropPiece=check_rise,
|
dropPiece=check_rise,
|
||||||
|
eventSet='digBase',
|
||||||
bg='bg2',bgm='way',
|
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)
|
mesDisp=function(P)
|
||||||
setFont(55)
|
setFont(55)
|
||||||
mStr(100-P.stat.dig,63,265)
|
mStr(100-P.stat.dig,63,265)
|
||||||
|
|||||||
@@ -9,16 +9,9 @@ return{
|
|||||||
env={
|
env={
|
||||||
pushSpeed=6,
|
pushSpeed=6,
|
||||||
dropPiece=check_rise,
|
dropPiece=check_rise,
|
||||||
|
eventSet='digBase',
|
||||||
bg='bg1',bgm='way',
|
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)
|
mesDisp=function(P)
|
||||||
setFont(55)
|
setFont(55)
|
||||||
mStr(10-P.stat.dig,63,265)
|
mStr(10-P.stat.dig,63,265)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function check_rise(P)
|
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())
|
P:garbageRise(21,1,P:getHolePos())
|
||||||
end
|
end
|
||||||
if P.stat.dig==400 then
|
if P.stat.dig==400 then
|
||||||
@@ -12,16 +12,9 @@ return{
|
|||||||
env={
|
env={
|
||||||
pushSpeed=6,
|
pushSpeed=6,
|
||||||
dropPiece=check_rise,
|
dropPiece=check_rise,
|
||||||
|
eventSet='digBase',
|
||||||
bg='bg2',bgm='way',
|
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)
|
mesDisp=function(P)
|
||||||
setFont(55)
|
setFont(55)
|
||||||
mStr(400-P.stat.dig,63,265)
|
mStr(400-P.stat.dig,63,265)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
local function check_rise(P)
|
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())
|
P:garbageRise(21,1,P:getHolePos())
|
||||||
end
|
end
|
||||||
if P.stat.dig==40 then
|
if P.stat.dig==40 then
|
||||||
@@ -12,16 +12,9 @@ return{
|
|||||||
env={
|
env={
|
||||||
pushSpeed=6,
|
pushSpeed=6,
|
||||||
dropPiece=check_rise,
|
dropPiece=check_rise,
|
||||||
|
eventSet='digBase',
|
||||||
bg='bg1',bgm='way',
|
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)
|
mesDisp=function(P)
|
||||||
setFont(55)
|
setFont(55)
|
||||||
mStr(40-P.stat.dig,63,265)
|
mStr(40-P.stat.dig,63,265)
|
||||||
|
|||||||
Reference in New Issue
Block a user