CORE/SCRIPTS: refactor all damage taken functions