summaryrefslogtreecommitdiff
path: root/src/constants.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-08-23 22:32:10 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-08-23 22:32:10 +0200
commitf7d50a80782376d2e1c068e4d0a7ce9632f28bda (patch)
tree1235977bb6ce8639c24a5315f094364a39e34ee0 /src/constants.h
parentd01b65abebf3b2e86d076c6b69996fd3a205a960 (diff)
downloadminetest-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 'src/constants.h')
-rw-r--r--src/constants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constants.h b/src/constants.h
index 4da66cc53..ddf7218e2 100644
--- a/src/constants.h
+++ b/src/constants.h
@@ -90,7 +90,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define PLAYER_INVENTORY_SIZE (8 * 4)
// Maximum hit points of a player
-#define PLAYER_MAX_HP 20
+#define PLAYER_MAX_HP_DEFAULT 20
// Maximal breath of a player
#define PLAYER_MAX_BREATH 11