Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)
authorANAND <ClobberXD@gmail.com>
Tue, 28 Apr 2020 17:30:57 +0000 (23:00 +0530)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2020 17:30:57 +0000 (19:30 +0200)
commita36c9c3e930608386b983ea76158793fe9d622f6
treec6dcb31ce396943bd0127e3e43166258732bc6a8
parenta368e7e79303fa02ef97580a2c387dcee57bc3c4
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
builtin/game/constants.lua
builtin/game/statbars.lua
src/constants.h