Ensures Shoes are updated

This commit is contained in:
Poojawa
2018-09-26 08:36:30 -05:00
parent 865b6a5b3a
commit 5982f5c67c
2 changed files with 10 additions and 5 deletions
+8 -5
View File
@@ -58,18 +58,21 @@
/obj/item/clothing/shoes/equipped(mob/user, slot)
. = ..()
if(offset && slot_flags & slotdefine2slotbit(slot))
user.pixel_y += offset
worn_y_dimension -= (offset * 2)
user.update_inv_shoes()
equipped_before_drop = TRUE
if(mutantrace_variation && ishuman(user))
var/mob/living/carbon/human/H = user
if(DIGITIGRADE in H.dna.species.species_traits)
adjusted = DIGITIGRADE_STYLE
H.update_inv_shoes()
else if(adjusted == DIGITIGRADE_STYLE)
adjusted = NORMAL_STYLE
H.update_inv_shoes()
if(offset && slot_flags & slotdefine2slotbit(slot))
user.pixel_y += offset
worn_y_dimension -= (offset * 2)
user.update_inv_shoes()
equipped_before_drop = TRUE
/obj/item/clothing/shoes/proc/restore_offsets(mob/user)
equipped_before_drop = FALSE
@@ -917,6 +917,8 @@ GLOBAL_LIST_EMPTY(roundstart_races)
return FALSE
if(num_legs < 2)
return FALSE
if(DIGITIGRADE in species_traits)
H.update_inv_shoes()
return equip_delay_self_check(I, H, bypass_equip_delay_self)
if(SLOT_BELT)
if(H.belt)