diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-08-23 22:32:10 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-23 22:32:10 +0200 |
commit | f7d50a80782376d2e1c068e4d0a7ce9632f28bda (patch) | |
tree | 1235977bb6ce8639c24a5315f094364a39e34ee0 /doc | |
parent | d01b65abebf3b2e86d076c6b69996fd3a205a960 (diff) | |
download | minetest-f7d50a80782376d2e1c068e4d0a7ce9632f28bda.tar.gz minetest-f7d50a80782376d2e1c068e4d0a7ce9632f28bda.tar.bz2 minetest-f7d50a80782376d2e1c068e4d0a7ce9632f28bda.zip |
Respect object property hp_max field for players (#6287)
* Respect object property hp_max field for players
This allows modders to configure the maximal HP per player
* Statbars: Downscale bar to full 20 HP when exceeding this value
Add default max HP for players and breath constants to builtin
Document the constants
* Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 37c754c9d..7af935056 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3276,6 +3276,7 @@ This is basically a reference to a C++ `ServerActiveObject` * `0`: player is drowning, * `1`-`10`: remaining number of bubbles * `11`: bubbles bar is not shown + * See constant: `minetest.PLAYER_MAX_BREATH` * `set_attribute(attribute, value)`: * Sets an extra attribute with value on player. * `value` must be a string. @@ -3980,6 +3981,7 @@ Definition tables { hp_max = 1, + -- ^ For players, the maximal HP defaults to `minetest.PLAYER_MAX_HP_DEFAULT` physical = true, collide_with_objects = true, -- collide with other objects if physical = true weight = 5, |