Fixes

About the Restore/Damage effects change: To be consistent with the rest of our code for lasting effects, I chose a continuous approach (apply an element of magnitude each frame), despite vanilla applying the entire magnitude only once per second. However, that means "damage" in AttributeStat needs to be a float instead of an int, which, if serialized as a float, would break compatibility with old savegames. Perhaps it wouldn't make that much of a difference to keep serializing stat damage as an int, what do you think?