Merge pull request #7872 from Verkister/patch-60

Fixes accessories not getting applied on spawn
This commit is contained in:
Schnayy
2021-02-13 11:17:58 -06:00
committed by GitHub

View File

@@ -215,6 +215,7 @@ This saves us from having to call add_fingerprint() any time something is put in
if(slot_back)
src.back = W
W.equipped(src, slot)
worn_clothing += back
update_inv_back()
if(slot_wear_mask)
src.wear_mask = W
@@ -222,6 +223,7 @@ This saves us from having to call add_fingerprint() any time something is put in
update_hair() //rebuild hair
update_inv_ears()
W.equipped(src, slot)
worn_clothing += wear_mask
update_inv_wear_mask()
if(slot_handcuffed)
src.handcuffed = W
@@ -241,6 +243,7 @@ This saves us from having to call add_fingerprint() any time something is put in
if(slot_belt)
src.belt = W
W.equipped(src, slot)
worn_clothing += belt
update_inv_belt()
if(slot_wear_id)
src.wear_id = W
@@ -269,6 +272,7 @@ This saves us from having to call add_fingerprint() any time something is put in
if(slot_glasses)
src.glasses = W
W.equipped(src, slot)
worn_clothing += glasses
update_inv_glasses()
if(slot_gloves)
src.gloves = W
@@ -283,18 +287,22 @@ This saves us from having to call add_fingerprint() any time something is put in
if(istype(W,/obj/item/clothing/head/kitty))
W.update_icon(src)
W.equipped(src, slot)
worn_clothing += head
update_inv_head()
if(slot_shoes)
src.shoes = W
W.equipped(src, slot)
worn_clothing += shoes
update_inv_shoes()
if(slot_wear_suit)
src.wear_suit = W
W.equipped(src, slot)
worn_clothing += wear_suit
update_inv_wear_suit()
if(slot_w_uniform)
src.w_uniform = W
W.equipped(src, slot)
worn_clothing += w_uniform
update_inv_w_uniform()
if(slot_l_store)
src.l_store = W
@@ -397,4 +405,4 @@ This saves us from having to call add_fingerprint() any time something is put in
if(l_hand)
. += l_hand
if(r_hand)
. += r_hand
. += r_hand