Skip to content

Commit

Permalink
brain trauma
Browse files Browse the repository at this point in the history
  • Loading branch information
ven1883 committed Oct 3, 2024
1 parent 4b05521 commit 810696e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
for(var/obj/item/clothing/clothing_item in covering_clothing)
if(clothing_item.body_parts_covered & def_zone.body_part)
protection *= (100 - min(clothing_item.get_armor_rating(damage_type), 100)) * 0.01
//monkestation edit start
protection *= (100 - min(physiology.armor.get_rating(damage_type), 100)) / 100
//monkestation edit start
protection *= isnull(inherent_armor_rating) ? 1 : (100 - inherent_armor_rating) / 100
//end monkeststation edit: now checks src.armor so you can give characters inherent armor without targeting physiology or generating clothing
//you can use this with "target.set_armor" and it will work on live creatures
Expand Down

0 comments on commit 810696e

Please sign in to comment.