Skip to content

Commit 1f3e176

Browse files
committed
fix missing parameter tags in OnNPCTakeDamage callback description
1 parent 0fca711 commit 1f3e176

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

frontend/docs/scripting/callbacks/OnNPCTakeDamage.md

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

1212
This callback is called when an NPC takes damage from a player or another NPC.
1313

14-
| Name | Description |
15-
| --------- | ---------------------------------------------------- |
16-
| npcid | The ID of the NPC that took damage |
17-
| issuerid | The ID of the player/NPC that caused the damage |
18-
| amount | The amount of damage that was taken |
19-
| weaponid | The weapon ID used to cause the damage |
20-
| bodypart | The [body part](../resources/bodyparts) that was hit |
14+
| Name | Description |
15+
| --------------- | ---------------------------------------------------- |
16+
| npcid | The ID of the NPC that took damage |
17+
| issuerid | The ID of the player/NPC that caused the damage |
18+
| Float:amount | The amount of damage that was taken |
19+
| WEAPON:weaponid | The weapon ID used to cause the damage |
20+
| bodypart | The [body part](../resources/bodyparts) that was hit |
2121

2222
## Returns
2323

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

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

1212
当 NPC 受到来自玩家或其他 NPC 的伤害时调用此回调。
1313

14-
| 参数 | 说明 |
15-
| -------- | ------------------------------------------ |
16-
| npcid | 受到伤害的 NPC 的 ID |
17-
| issuerid | 造成伤害的玩家/NPC 的 ID |
18-
| damage | 受到的伤害数量 |
19-
| weaponid | 用于造成伤害的武器 ID |
20-
| bodypart | 被击中的[身体部位](../resources/bodyparts) |
14+
| 参数 | 说明 |
15+
| --------------- | ------------------------------------------ |
16+
| npcid | 受到伤害的 NPC 的 ID |
17+
| issuerid | 造成伤害的玩家/NPC 的 ID |
18+
| Float:damage | 受到的伤害数量 |
19+
| WEAPON:weaponid | 用于造成伤害的武器 ID |
20+
| bodypart | 被击中的[身体部位](../resources/bodyparts) |
2121

2222
## 返回值
2323

0 commit comments

Comments
 (0)