Allows Accessories to Have Armor

This commit is contained in:
Fox-McCloud
2016-08-07 11:06:37 -04:00
parent a8f309f12f
commit 40bbf6a788
@@ -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, "<span class='notice'>You attach [src] to [has_suit].</span>")
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)