Skip to content

Commit 7bf1571

Browse files
committed
fix missing parameter tags in OnNPCDeath callback description
1 parent fc87c47 commit 7bf1571

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frontend/docs/scripting/callbacks/OnNPCDeath.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ tags: ["npc"]
1111

1212
This callback is called when an NPC dies.
1313

14-
| Name | Description |
15-
| -------- | --------------------------------------------------------------------------- |
16-
| npcid | The ID of the NPC that died |
17-
| killerid | The ID of the player/NPC that killed the NPC (or INVALID_PLAYER_ID if none) |
18-
| reason | The reason for death (weapon ID or death cause) |
14+
| Name | Description |
15+
| ------------- | --------------------------------------------------------------------------- |
16+
| npcid | The ID of the NPC that died |
17+
| killerid | The ID of the player/NPC that killed the NPC (or INVALID_PLAYER_ID if none) |
18+
| WEAPON:reason | The reason for death (weapon ID or death cause) |
1919

2020
## Examples
2121

frontend/i18n/zh-CN/docusaurus-plugin-content-docs/current/scripting/callbacks/OnNPCDeath.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ tags: ["npc"]
1111

1212
当 NPC 死亡时调用此回调。
1313

14-
| 参数 | 说明 |
15-
| -------- | ----------------------------------------------------------- |
16-
| npcid | 死亡的 NPC 的 ID |
17-
| killerid | 击杀 NPC 的玩家/NPC 的 ID(如果没有则为 INVALID_PLAYER_ID) |
18-
| reason | 死亡原因(武器 ID 或死亡原因) |
14+
| 参数 | 说明 |
15+
| ------------- | ----------------------------------------------------------- |
16+
| npcid | 死亡的 NPC 的 ID |
17+
| killerid | 击杀 NPC 的玩家/NPC 的 ID(如果没有则为 INVALID_PLAYER_ID) |
18+
| Weapon:reason | 死亡原因(武器 ID 或死亡原因) |
1919

2020
## 示例
2121

0 commit comments

Comments
 (0)