mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Consistently use "health points" (#10868)
This commit is contained in:
parent
8dae7b47fc
commit
44a9510c81
3 changed files with 4 additions and 4 deletions
|
@ -6221,8 +6221,8 @@ object you are working with still exists.
|
|||
* `time_from_last_punch` = time since last punch action of the puncher
|
||||
* `direction`: can be `nil`
|
||||
* `right_click(clicker)`; `clicker` is another `ObjectRef`
|
||||
* `get_hp()`: returns number of hitpoints (2 * number of hearts)
|
||||
* `set_hp(hp, reason)`: set number of hitpoints (2 * number of hearts).
|
||||
* `get_hp()`: returns number of health points
|
||||
* `set_hp(hp, reason)`: set number of health points
|
||||
* See reason in register_on_player_hpchange
|
||||
* Is limited to the range of 0 ... 65535 (2^16 - 1)
|
||||
* For players: HP are also limited by `hp_max` specified in the player's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue