落块事件改名落块钩子

添加死亡钩子(仅在窒息和超高触发)
堆积模式消行动作挂到死亡钩子上
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

@@ -304,6 +304,7 @@ local function _applyGameEnv(P)--Finish gameEnv processing
--Apply events
ENV.mesDisp=_mergeFuncTable(ENV.mesDisp,{})
ENV.hook_drop=_mergeFuncTable(ENV.hook_drop,{})
ENV.hook_die=_mergeFuncTable(ENV.hook_die,{})
ENV.task=_mergeFuncTable(ENV.task,{})
--Apply eventSet
@@ -315,6 +316,7 @@ local function _applyGameEnv(P)--Finish gameEnv processing
if
k=='mesDisp'or
k=='hook_drop'or
k=='hook_die'or
k=='task'
then
_mergeFuncTable(v,ENV[k])