What I briefly thought of was, why not clear up the variables we aren't using? It wouldn't hurt, would it? Even though we may use it a bit later. Well, the method I composed a few minutes ago in my head and wanted to briefly share it with others to get an opinion goes like so:
mob/verb
Heal()
while(hp != null)
hp++
if(hp >= mhp)
hp = null
Hurt()
if(hp == null)
hp = mhp
hp--
Now, I'm not sure how beneficial this would be. But, it was a quick thought that I felt I should get out there. I'm not sure if constantly resetting a variable would be bad in terms of CPU or if the garbage collector will do it's job on these nullified variables in time. Any thoughts?
Wouldn't this go into the negative values?
[Edit]
It also sets the players hp to null since it's >= mhp
Here's how I'd go about it