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

Set default health based on max health attribute #569

Open
SelfMadeSystem opened this issue Oct 18, 2023 · 0 comments
Open

Set default health based on max health attribute #569

SelfMadeSystem opened this issue Oct 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@SelfMadeSystem
Copy link
Contributor

SelfMadeSystem commented Oct 18, 2023

Describe the problem related to your feature request.

Currently, all entities' default health is the same. However, now that we have their default max health attribute, we can now set the default health value for each entity.

This problem isn't very apparent, but it becomes apparent when we include food and saturation via #565 / #568

What solution would you like?

Default the max health of entities

What alternative(s) have you considered?

I don't think one is feasible.

Additional context

Since #568 (HealthUpdateS2c) tells the client about their food level, saturation, AND health, we need to have good defaults.

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

Successfully merging a pull request may close this issue.

1 participant