diff options
author | ANAND <ClobberXD@gmail.com> | 2020-04-28 23:00:57 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 19:30:57 +0200 |
commit | a36c9c3e930608386b983ea76158793fe9d622f6 (patch) | |
tree | c6dcb31ce396943bd0127e3e43166258732bc6a8 /builtin/game/constants.lua | |
parent | a368e7e79303fa02ef97580a2c387dcee57bc3c4 (diff) | |
download | minetest-a36c9c3e930608386b983ea76158793fe9d622f6.tar.gz minetest-a36c9c3e930608386b983ea76158793fe9d622f6.tar.bz2 minetest-a36c9c3e930608386b983ea76158793fe9d622f6.zip |
Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears.
Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
Diffstat (limited to 'builtin/game/constants.lua')
-rw-r--r-- | builtin/game/constants.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/constants.lua b/builtin/game/constants.lua index 0ee2a7237..54eeea50f 100644 --- a/builtin/game/constants.lua +++ b/builtin/game/constants.lua @@ -24,7 +24,7 @@ core.MAP_BLOCKSIZE = 16 -- Default maximal HP of a player core.PLAYER_MAX_HP_DEFAULT = 20 -- Default maximal breath of a player -core.PLAYER_MAX_BREATH_DEFAULT = 11 +core.PLAYER_MAX_BREATH_DEFAULT = 10 -- light.h -- Maximum value for node 'light_source' parameter |