Skip to content

Commit d2148e9

Browse files
committed
fix missing parameter tags in OnNPCGiveDamage callback description
1 parent 7bf1571 commit d2148e9

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

frontend/docs/scripting/callbacks/OnNPCGiveDamage.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 gives damage to a player.
1313

14-
| Name | Description |
15-
| --------- | ---------------------------------------------------- |
16-
| npcid | The ID of the NPC that gave the damage |
17-
| damagedid | The ID of the player that received the damage |
18-
| amount | The amount of damage that was given |
19-
| weaponid | The weapon ID used to give the damage |
20-
| bodypart | The [body part](../resources/bodyparts) that was hit |
14+
| Name | Description |
15+
| --------------- | ---------------------------------------------------- |
16+
| npcid | The ID of the NPC that gave the damage |
17+
| damagedid | The ID of the player that received the damage |
18+
| Float:amount | The amount of damage that was given |
19+
| WEAPON:weaponid | The weapon ID used to give 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/OnNPCGiveDamage.md

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

1212
当 NPC 对玩家造成伤害时调用此回调。
1313

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

2222
## 返回值
2323

0 commit comments

Comments
 (0)