mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Report node for drowning in PlayerHPChangeReason
This commit is contained in:
parent
6d3057b08e
commit
a21dd0a992
3 changed files with 5 additions and 3 deletions
|
@ -11086,7 +11086,8 @@ The `PlayerHPChangeReason` table specifies a reason for player health changes.
|
|||
* `node_damage`: `damage_per_second` from a neighboring node.
|
||||
`reason.node` will hold the node name or nil.
|
||||
`reason.node_pos` will hold the position of the node
|
||||
* `drown`: Drowning damage.
|
||||
* `drown`: Drowning damage from a node with the `drowning` field set.
|
||||
`reason.node` and `reason.node_pos` are same as for `node_damage`
|
||||
* `respawn`: HP restored by respawning.
|
||||
* The `detail` field may optionally be used to provide a more detailed reason
|
||||
as a string. It's recommended to follow the `modname:detail` naming convention.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue