Files
Techmino/parts/eventsets/dig_40l.lua
2021-11-12 23:20:29 +08:00

21 lines
462 B
Lua

return{
mesDisp=function(P)
setFont(55)
mStr(40-P.stat.dig,63,265)
end,
hook_drop=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,
}