Respect object property hp_max field for players (#6287)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 23 Aug 2017 20:32:10 +0000 (22:32 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 23 Aug 2017 20:32:10 +0000 (22:32 +0200)
commitf7d50a80782376d2e1c068e4d0a7ce9632f28bda
tree1235977bb6ce8639c24a5315f094364a39e34ee0
parentd01b65abebf3b2e86d076c6b69996fd3a205a960
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
builtin/game/constants.lua
builtin/game/statbars.lua
doc/lua_api.txt
src/constants.h
src/content_sao.cpp
src/remoteplayer.cpp
src/script/common/c_content.cpp
src/script/lua_api/l_object.cpp
src/server.cpp