Merge pull request #6528 from VOREStation/upstream-merge-6658

[MIRROR] Teshari Poncho Fix
This commit is contained in:
Novacat
2020-02-01 18:38:01 -05:00
committed by GitHub
@@ -62,6 +62,19 @@
"Teshari" = 'icons/mob/species/seromi/suit.dmi'
)
/obj/item/clothing/accessory/poncho/equipped() //Solution for race-specific sprites for an accessory which is also a suit. Suit icons break if you don't use icon override which then also overrides race-specific sprites.
..()
var/mob/living/carbon/human/H = loc
if(istype(H) && H.wear_suit == src)
if(H.species.name == "Teshari")
icon_override = 'icons/mob/species/seromi/suit.dmi'
else
icon_override = 'icons/mob/ties.dmi'
update_clothing_icon()
/obj/item/clothing/accessory/poncho/dropped() //Resets the override to prevent the wrong .dmi from being used because equipped only triggers when wearing ponchos as suits.
icon_override = null
/obj/item/clothing/accessory/poncho/green
name = "green poncho"
desc = "A simple, comfortable cloak without sleeves. This one is green."