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

Fixing vampirism degrading nutrition #17

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Fixing vampirism degrading nutrition #17

merged 4 commits into from
Apr 11, 2024

Conversation

Alastors
Copy link
Contributor

@Alastors Alastors commented Apr 10, 2024

Being a vampire causes a bug with nutrition since vampirism apparently refills the hunger bar, leading to a degradation of the nutrition bars.

What this attempts to do (successfully according to Xabe in tests) is set a hard floor for vampire's nutritional bars (50%) adding a method to do so automagically that could be utilized in other methods similar to this in the future.

How this achieves it is by modifying the nutritional manager class and adding the method mentioned above, and then adding a witchery module folder containing a listener that calls this method if the player is a vampire which briefly checks if any of the player's nutritional bars are below 50, and if they are, sets them to 50.

And yes, I made sure it's an optional dep, I added the usual interface and class I use to manage that for ease in the future, given i'm sure this'll pop up again, might need to add Thaumic Horizons compat as well since it has similar features.

fixes: GTNewHorizons/GT-New-Horizons-Modpack#14771

@Alastors Alastors requested a review from a team April 10, 2024 16:28
@Alastors
Copy link
Contributor Author

apparently the server really doesn't like loading an empty init

@PoptartOverlord-Xabedo
Copy link

wholesome 100

@Alastors Alastors changed the title Xabe's requested vamp changes, fixes vampirism degrading nutrition Fixing vampirism degrading nutrition Apr 10, 2024
Copy link
Contributor

@mitchej123 mitchej123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this

@Dream-Master Dream-Master merged commit d6a50db into master Apr 11, 2024
1 check passed
@Dream-Master Dream-Master deleted the habibi branch April 11, 2024 05:38
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.

adding nutritional value to warm blood for vampirically inclined playstyles
5 participants