Commit Graph

11 Commits

Author SHA1 Message Date
peelz
4e41d5c4fb Fix item.interact hook not passing the correct parameters 2022-08-10 05:36:17 -04:00
peelz
33a29741df Change DefaultHook.lua to use Hook.Patch 2022-08-10 05:36:17 -04:00
Evil Factory
e1e0fd6acf Bunch of fixes 2022-04-09 09:06:29 -03:00
Evil Factory
15294a4a61 rename item hooks to use the new name scheme, register body, new meleeWeapon.handleImpact hook and statusEffect.apply.ItemIdentifier hook 2022-02-02 11:52:08 -03:00
zhurengong
6daf410e50 Improve Harmony Hook
1. Hook.HookMethod can patch overloaded methods based on parameter types
2. Hook.HookMethod can add more patches to the method
3. Find all hook methods by the address of the function (origin method), not by the method path (string).
4. Fixed unable to add postfix patch to method (__params changed to __args)
5. Fix patching method will cause duplicate patches to be added
2022-01-27 22:50:34 +08:00
Evil Factory
f04d897370 fix client-side lua errors 2021-12-26 13:32:45 -03:00
Evil Factory
a65160dcbd fix item hooks not working properly 2021-11-28 13:52:36 -03:00
Evil Factory
3127bfa037 fixed wrong hook type 2021-11-24 21:25:18 -03:00
Evil Factory
3a4f3cded4 added job assigned hook 2021-11-16 19:41:02 -03:00
zhurengong
d1188a1ea5 do a hook call inside callback param of HookMethod, and wrapped __params 2021-11-11 22:13:35 +08:00
zhurengong
6b1aca8efa modified way to patch, can realize params map for compatibility, and try to hook Item in lua. 2021-11-10 21:07:19 +08:00