dkfans / keeperfx

Open source remake and Fan Expansion of Dungeon Keeper.
https://keeperfx.net/
GNU General Public License v2.0
778 stars 78 forks source link

Add function calculate_correct_creature_max_health to fix issue with modifier #3716

Open walt253 opened 3 days ago

walt253 commented 3 days ago

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

The reasons for this addition are:

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.