落块事件改名落块钩子

添加死亡钩子(仅在窒息和超高触发)
堆积模式消行动作挂到死亡钩子上
This commit is contained in:
MrZ626
2021-11-13 05:20:32 +08:00
parent 8cbb4a38bc
commit bc5193f95e
7 changed files with 48 additions and 29 deletions

View File

@@ -7,9 +7,9 @@ return{
mText(TEXTOBJ.line,63,350)
PLY.draw.drawMarkLine(P,20,.3,1,1,TIME()%.42<.21 and .95 or .6)
end,
hook_drop=function(P)
if #P.field>20 then
local cc=P:clearFilledLines(P.garbageBeneath+1,#P.field-P.garbageBeneath)
hook_die=function(P)
local cc=P:clearFilledLines(P.garbageBeneath+1,#P.field-P.garbageBeneath)
if cc>0 then
local h=20-cc-P.garbageBeneath
if h>0 then
P:garbageRise(21,h,2e10-1)