mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Adds a second ear slot. (#9329)
Co-authored-by: silicons <2003111+silicons@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ab2f0cc3d3
commit
38b0939ad4
@@ -668,7 +668,9 @@
|
||||
|
||||
/obj/item/clothing/head/fluff/avida/mob_can_equip(var/mob/living/carbon/human/H, slot, disable_warning = 0)
|
||||
if(..())
|
||||
if(H.ear_style && (H.ear_style.name == "Bnnuy Ears" || H.ear_style.name == "Bnnuy Ears 2")) //check if wearer's ear sprite is compatible with trimmed icon
|
||||
var/static/list/allowed_ear_names = list("Bnnuy Ears", "Bnnuy Ears 2")
|
||||
//check if wearer's ear sprite is compatible with trimmed icon
|
||||
if((H.ear_style?.name in allowed_ear_names) || (H.ear_secondary_style?.name in allowed_ear_names))
|
||||
item_state = initial(src.item_state)
|
||||
else //if not, just use a generic icon
|
||||
item_state = "avidahatnoears"
|
||||
|
||||
Reference in New Issue
Block a user