Um... did you maybe mean:
character.health -= 45;
...?
What you're doing now is subtracting 45 from 100 which results in 55 as it should, but character.health doesn't change as a result of the subtraction.
-=, however, will change the value on the left side.
-Albatross
Last edited on
Ive been puttin =- for a long time. THANK YOU!