Skip to content
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

Adjusted calculating the number of battery hearts #1929

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Cellane
Copy link

@Cellane Cellane commented Jul 12, 2018

This PR changes the logic behind how the number of full/empty hearts are calculated. The previous implementation worked fine but produced (at least for me) illogical/unintuitive results.

For example, I’d expect to see 3/5 hearts on 51% battery whereas the previous implementation displayed only 2/5.
Similarly, 99% battery displayed 4/5 hearts before, but with this change, it stays on 5/5 until the battery drops below 89%.

Thank you for consideration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant