mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-01-06 15:13:22 +00:00
@@ -172,9 +172,8 @@
|
|||||||
var/total_damage = brute + burn
|
var/total_damage = brute + burn
|
||||||
|
|
||||||
if(total_damage > can_inflict)
|
if(total_damage > can_inflict)
|
||||||
var/excess = total_damage - can_inflict
|
brute = round(brute * (max_damage / total_damage),DAMAGE_PRECISION)
|
||||||
brute = round(brute * (excess / total_damage),DAMAGE_PRECISION)
|
burn = round(burn * (max_damage / total_damage),DAMAGE_PRECISION)
|
||||||
burn = round(burn * (excess / total_damage),DAMAGE_PRECISION)
|
|
||||||
|
|
||||||
brute_dam += brute
|
brute_dam += brute
|
||||||
burn_dam += burn
|
burn_dam += burn
|
||||||
|
|||||||
Reference in New Issue
Block a user