From 40bbf6a78875c98f7221111b3abcd7d42c2d3d8a Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Sun, 7 Aug 2016 11:06:37 -0400 Subject: [PATCH] Allows Accessories to Have Armor --- code/modules/clothing/under/accessories/accessory.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/under/accessories/accessory.dm b/code/modules/clothing/under/accessories/accessory.dm index 8e8e046ef1b..9482ee7d080 100644 --- a/code/modules/clothing/under/accessories/accessory.dm +++ b/code/modules/clothing/under/accessories/accessory.dm @@ -30,6 +30,9 @@ var/mob/M = has_suit.loc A.Grant(M) + for(var/armor_type in armor) + has_suit.armor[armor_type] += armor[armor_type] + if(user) to_chat(user, "You attach [src] to [has_suit].") src.add_fingerprint(user) @@ -46,6 +49,9 @@ var/mob/M = has_suit.loc A.Remove(M) + for(var/armor_type in armor) + has_suit.armor[armor_type] -= armor[armor_type] + has_suit = null usr.put_in_hands(src) src.add_fingerprint(user)