Commit df3d514
committed
refactor(npc): move heal helper to shared npclib
Move registerHealKeyword from the global datapack functions into the shared NPC custom modules loaded by npclib, so NPC scripts from either supported datapack can reuse it. Remove the datapack-specific load entry and delete the obsolete helper file without changing the existing NPC call sites or healing behavior.
Validation: confirmed 83 NPC helper calls and one shared definition, confirmed no addHealKeyword pattern remains, checked staged Lua syntax and StyLua for the relocated library and load file, ran the staged whitespace check, and exercised the helper behavior from the staged shared module.1 parent c6a6a5d commit df3d514
3 files changed
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
2 | 18 | | |
3 | 19 | | |
4 | 20 | | |
| |||
0 commit comments