[MIRROR] Refactors armor into dedicated subtypes [MDB IGNORE] (#18291)

* Refactors armor into dedicated subtypes

* start

* most tg things

* pain (#18584)

* shit

* non-mod changes

* compile

Co-authored-by: John Doe <gamingskeleton3@gmail.com>

* #18291

* compile fix

* ???

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: John Doe <gamingskeleton3@gmail.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-07 20:06:16 -08:00
committed by GitHub
co-authored by John Doe Zephyr Zonespace
parent 9aac55ef4d
commit 011fefdd81
322 changed files with 8499 additions and 993 deletions
+2 -2
View File
@@ -91,7 +91,7 @@
var/list/clothing = human_wearer.clothingonpart(src)
for(var/obj/item/clothing/clothes_check as anything in clothing)
// unlike normal armor checks, we tabluate these piece-by-piece manually so we can also pass on appropriate damage the clothing's limbs if necessary
if(clothes_check.armor.getRating(WOUND))
if(clothes_check.get_armor_rating(WOUND))
bare_wound_bonus = 0
break
@@ -150,7 +150,7 @@
var/list/clothing = human_owner.clothingonpart(src)
for(var/obj/item/clothing/clothes as anything in clothing)
// unlike normal armor checks, we tabluate these piece-by-piece manually so we can also pass on appropriate damage the clothing's limbs if necessary
armor_ablation += clothes.armor.getRating(WOUND)
armor_ablation += clothes.get_armor_rating(WOUND)
if(wounding_type == WOUND_SLASH)
clothes.take_damage_zone(body_zone, damage, BRUTE)
else if(wounding_type == WOUND_BURN && damage >= 10) // lazy way to block freezing from shredding clothes without adding another var onto apply_damage()