CORE/SCRIPTS: refactor all damage taken functions
Merge pull request #210 from maxtherabbit/master

CORE/SCRIPTS: refactor all damage taken functions