After we added the healthPoints = -1
my player suddenly showed 400% health from a clean start (i.e. no save file). I realized that I forgot to remove the SerializeField
and an initial value of 200 was being set and overriding the -1. After removing the SerializeField
nothing changed. I was still getting 400% health. After lots of digging I found that the original serialized value of 200 was still in the prefab’s yaml and after manually removing the entries (I had to do the Character and Enemy prefabs, too) my health was back to normal.
Just putting this here in case someone else has a similar issue