Skip to content

Commit

Permalink
Fixes limb damage cap formula (tgstation#43104)
Browse files Browse the repository at this point in the history
  • Loading branch information
YPOQ authored and ExcessiveUseOfCobblestone committed Mar 20, 2019
1 parent 339bca9 commit f8091d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/modules/surgery/bodyparts/bodyparts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@
var/total_damage = brute + burn

if(total_damage > can_inflict)
var/excess = total_damage - can_inflict
brute = round(brute * (excess / total_damage),DAMAGE_PRECISION)
burn = round(burn * (excess / total_damage),DAMAGE_PRECISION)
brute = round(brute * (can_inflict / total_damage),DAMAGE_PRECISION)
burn = round(burn * (can_inflict / total_damage),DAMAGE_PRECISION)

brute_dam += brute
burn_dam += burn
Expand Down

0 comments on commit f8091d6

Please sign in to comment.