Added damage-based regen, and support for AFK.
Merge pull request #16 from F2/master

Added damage-based regen, and support for AFK.