diff --git a/code/modules/mob/living/living_defense.dm b/code/modules/mob/living/living_defense.dm index a88bece1193..f4316c7c25f 100644 --- a/code/modules/mob/living/living_defense.dm +++ b/code/modules/mob/living/living_defense.dm @@ -413,15 +413,10 @@ if(!damage || !istype(user)) return - - var/used_divisor = 1 - if(isliving(user)) - var/mob/living/L = user - used_divisor = L.armor_divisor - var/attack_BP = BP_CHEST - if(prob(20)) - attack_BP = pick(list(BP_L_LEG, BP_R_LEG, BP_R_ARM, BP_L_ARM, BP_GROIN, BP_HEAD)) - damage_through_armor(damage, damagetype, attack_BP, ARMOR_MELEE, used_divisor, sharp=sharp, edge=edge) + if(damagetype == BRUTE) + adjustBruteLoss(damage) + else + adjustFireLoss(damage) user.attack_log += text("\[[time_stamp()]\] attacked [src.name] ([src.ckey])") src.attack_log += text("\[[time_stamp()]\] was attacked by [user.name] ([user.ckey])") src.visible_message(SPAN_DANGER("[user] has [attack_message] [src]!"))