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

Advanced health estimate #7

Open
Madis0 opened this issue Mar 12, 2021 · 1 comment
Open

Advanced health estimate #7

Madis0 opened this issue Mar 12, 2021 · 1 comment
Labels
enhancement New feature or request low priority

Comments

@Madis0
Copy link
Owner

Madis0 commented Mar 12, 2021

When having multiple similar effects - regeneration, poison, wither - how would one determine the final health? Cannot just use a max or min value, nor an average.

At the very least it should prioritize by the effect duration and level.

I think it should be a weighed average of estimated health with the weigh of effect duration * effect level. However, what would be the weighs of non-effect states (e.g. drowning)? Possibly the time in ticks to die.

Edit: 1.4.1 added parentheses, which helps with the readability a bit.

@Madis0 Madis0 changed the title Most important health estimate Advanced health estimate Mar 12, 2021
@Madis0 Madis0 added the enhancement New feature or request label Mar 13, 2021
@Madis0
Copy link
Owner Author

Madis0 commented Sep 28, 2022

It has been suggested to use min(all effects) to make the player "act early" in case of dangers. It could be a possible option, though it definitely does undermine the positive effects (e.g. using golden apples in a Wither fight).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant