2013-07-05, 08:59 PM
(2013-07-05, 07:00 PM)HwitVlf link Wrote:I suppose that makes sense since it's possible for an enemy to get damaged from another enemy. but still the "reduce HP" step should be just downstream from the damage calculation. It's not likely that SoM would calculate damage, then hold the result in memory and do a bunch of other stuff like trigger the "getting hit" animation before actually reducing HP.
Actually that's exactly what SOM does as it turns out. But anyway. Computers do things in sequence. You have to wait your turn if you are not the man in the middle. So if the word "downstream" even makes sense then you are already inside of the code somehow.
When the damage monitoring HUD looks at HP doesn't really matter. It just does it once per frame. A few things use it.
EDITED: I can post the details on what SOM actually does, at least with respect to the formula tomorrow. I am too exhausted right now.