Files
Techmino/parts/eventsets/dig_h.lua
2022-10-29 00:59:41 +08:00

23 lines
592 B
Lua

return {
mesDisp=function(P)
setFont(60)
GC.mStr(P.modeData.wave,63,310)
mText(TEXTOBJ.wave,63,375)
end,
task=function(P)
while true do
coroutine.yield()
if P.control then
local D=P.modeData
D.timer=D.timer+1
if D.timer>=math.max(90,180-D.wave) then
P:garbageRise(21,1,P:getHolePos())
P.stat.recv=P.stat.recv+1
D.timer=0
D.wave=D.wave+1
end
end
end
end,
}