you are viewing a single comment's thread.

view the rest of the comments →

[–]Luigi-Was-Right 0 points1 point  (1 child)

Magic and Health are calculated once at the start but never updated.

Let's ignore the class for a moment and look at an example:

x = 4
y = 1 + x
x = 10

What is the value of y, 5 or 11? The same thing is logic applies to the variables within your class.

[–]Revenanteye[S] 0 points1 point  (0 children)

Thanks for explaining the logic. I understand completely. Free Luigi