chessmasterhong / WaterEmblem

https://chessmasterhong.bitbucket.io/projects/WaterEmblem/
118 stars 27 forks source link

Resuming game has inconsistent HP #188

Closed DrkSephy closed 9 years ago

DrkSephy commented 9 years ago

When restarting from a suspended game, the Hit Points (base HP) will not be right. In some cases my base HP is higher than my max HP:

bug

And sometimes my HP is lower than my max HP when starting the map (starting at a disadvantage):

bug2

DrkSephy commented 9 years ago

Judging from what I can see, the min/max HP are both having random numbers being rolled randomly, which explains why in some cases my base HP is greater than my max HP. We'd need to store the min/max HP on save.