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

Add function calculate_correct_creature_max_health to fix issue with modifier #3716

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

walt253
Copy link
Contributor

@walt253 walt253 commented Nov 22, 2024

I added the calculate_correct_creature_max_health function and updated the relevant game files accordingly.

The reasons for this addition are:

  • To fix an oversight with the health modifier: Lair Recovery, Toking Recovery, and Torture Damage were incorrectly affected by the modifier.

  • To eliminate the need for the 3rd argument in compute_creature_max_health.

Additionally, I removed the soft cap on health, allowing creatures to have an exceptionally high amount of health, should the mapmaker choose to do so.

While working on this, I also reformatted the functions I encountered during the process. Hope you don't mind.

@walt253 walt253 marked this pull request as ready for review November 22, 2024 22:43
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.

1 participant