New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix breath statbar scaling; defer breath_bar hiding by one second #8271
Conversation
At the moment, the breath bar does disappear once full. Should I make it permanently visible? |
breath bar always disappear when full :) |
I know, but doesn't that seem inconsistent with the health bar? If this behaviour is correct, shouldn't the health bar disappear when the player has full health as well? |
i don't think. Health should be shown every time like in many RPG, and breath is only shown when consumed generally, the current behaviour is fine and natural for me |
Breath bar disappearing is ok for me, less visual obstruction. |
it's humorous to me that we are going from showing one half too many
bubbles to showing one half too few. an improvement nonetheless.
…On Fri, Feb 22, 2019, 2:09 PM Paramat ***@***.***> wrote:
Breath bar disappearing is ok for me, less visual obstruction.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8271 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWXKYj_yeProlGacT-zfb3oHdy0l7t_mks5vQEBMgaJpZM4bJAEB>
.
|
Usually you don't care about breath, thus hiding it frees some space for the relevant game screen. I'd like to keep the old behaviour; internally the maximal value could be set to 1 higher so that the HUD may disappear correctly. |
Makes sense. What do you suggest I do now? |
I don't think 10 bubbles should ever appear, if 10 is full then 10 should be invisible. No bar means 10. This 11 thing is silly and messy. |
I disagree. Having the bubbles statbar disappear when only at nine bubbles
looks awkward. I suggest you try it and see for yourself.
[Edit: For the record, I don't really think it matters overall, just giving my two cents.]
…On Sat, Feb 23, 2019 at 2:46 PM Paramat ***@***.***> wrote:
I don't think 10 bubbles should ever appear, if 10 is full then 10 should
be invisible. No bar means 10. This 11 thing is silly and messy.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8271 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWXKYjB8bk6ED4aieQJ8JffhMN-cpAeoks5vQZqZgaJpZM4bJAEB>
.
|
I don't need to try it i can imagine from current behaviour. |
it disappeared at ten, you never saw eleven.
…On Sun, Feb 24, 2019, 3:26 PM Paramat ***@***.***> wrote:
I don't need to try it i can imagine from current behaviour.
Currently, when at 10 bubbles there is another breath regain cycle as the
11th is gained, then it disappears at 11. I can see why it was done but it
was a bad and messy decision because 11 is a weird and inconsistent number.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#8271 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWXKYq8CMA_2dgYRaWONO6_RPztiJtXJks5vQvWPgaJpZM4bJAEB>
.
|
I know, that's what i wrote. |
You wrote that ten shouldn't be visible, which would be a change in current behavior. |
SmallJoker's suggestion of reducing |
6fc5e47
to
a803d10
Compare
Yes i was proposing 10 not being visible, a change of behaviour. Yes a more careful implementation is probably needed. |
Any thoughts or suggestions as to what's the best way to do this? |
0e3b135
to
39c54e1
Compare
On printing a bunch of values, I noticed that the player's breath_max is 11, in spite of having changed |
a0417b0
to
4b60dec
Compare
It seems like I just didn't re-compile after setting This PR now works, and is ready for review. :) |
ca11b5c
to
28006bd
Compare
PR's ready for review (again). Tested by toggling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on my machine.
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
8a2238f
to
6037a68
Compare
Rebased. |
Bumpity-bump |
Bump Added testing instructions to the first post. |
@SmallJoker Merge? |
Not really trivial enough for a 1-approval merge. |
Delays may cause even more delays due to the need for re-testing. Better to merge this IMHO, instead of letting it stagnate, lest we have more PRs modifying the same areas of code and breaking this PR in the process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested. Works as expected.
Thanks for the review! |
PLAYER_MAX_BREATH_DEFAULT
is set to 11 instead of 10, probably so that all 10 bubbles are shown before the breath bar disappears. See #8210 (comment) for more details.This PR sets
PLAYER_MAX_BREATH_DEFAULT
to 10, and hides the breath bar after a delay of one second, so that all 10 bubbles are visible.Fixes #8210. Tested.
To test: