tails stop wagging when putting on a suit that hides them (#31158)

This commit is contained in:
chuga-git
2025-12-01 17:03:16 +00:00
committed by GitHub
parent 99fad46e39
commit 026bb3e859
2 changed files with 4 additions and 4 deletions
-3
View File
@@ -851,9 +851,6 @@
/obj/item/clothing/suit/equipped(mob/living/carbon/human/user, slot) //Handle tail-hiding on a by-species basis.
..()
if(ishuman(user) && hide_tail_by_species && slot == ITEM_SLOT_OUTER_SUIT)
if(user.tail_wagging)
user.stop_tail_wagging()
return
if("modsuit" in hide_tail_by_species)
return
if(user.dna.species.sprite_sheet_name in hide_tail_by_species)
@@ -1177,7 +1177,10 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
/mob/living/carbon/human/proc/update_tail_layer()
// If the tail is currently wagging, don't stop wagging.
if(tail_wagging)
start_tail_wagging()
if(wear_suit?.flags_inv & HIDETAIL)
stop_tail_wagging()
else
start_tail_wagging()
return
remove_overlay(TAIL_UNDERLIMBS_LAYER) // SEW direction icons, overlayed by LIMBS_LAYER.
remove_overlay(TAIL_LAYER) /* This will be one of two things: