Skip to content

Commit

Permalink
armor processing tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
X0-11 committed Jun 3, 2024
1 parent d531b19 commit 6f3a75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 6f3a75b

Please sign in to comment.