corrected take damage method

corrected so the damage taken is calculated correctly and made the
output more human readable with space and line breaks