From 6f3a75b30a91fbbbeec0aa705e5c1cb8318afdfb Mon Sep 17 00:00:00 2001 From: X0-11 Date: Mon, 3 Jun 2024 12:07:12 +0100 Subject: [PATCH] armor processing tweak --- code/modules/mob/living/carbon/human/human_defense.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index db063fb755e76..5a5cdeb4325ad 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -104,11 +104,11 @@ cloak disrupt override var/protection = 0 var/list/protective_gear = list(head, wear_mask, wear_suit, w_uniform, gloves, shoes) for(var/gear in protective_gear) - if(gear && istype(gear ,/obj/item/clothing)) + if(gear) var/obj/item/clothing/C = gear if(istype(C) && C.body_parts_covered & def_zone.body_part) - var/effective_armor_thickness = 1 - if(!isnull(initial(C.armor_thickness))) + var/effective_armor_thickness = 0 + if(!isnull(C.armor_thickness_max)) effective_armor_thickness = (C.armor_thickness/10) + 1 if(type in C.armor_thickness_modifiers) effective_armor_thickness *= C.armor_thickness_modifiers[type]