mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 00:23:29 +01:00
f3f9bd442a
* undo all of it * flags * back * head/mask * left * right * Cuffs * other name changes * ID and PDA * idk about calling them SLOT_HUD now * glasses, gloves, and shoes, oh my! * the rest * comment
23 lines
701 B
Plaintext
23 lines
701 B
Plaintext
/obj/item/clothing/ears/earmuffs
|
|
name = "earmuffs"
|
|
desc = "Protects your hearing from loud noises, and quiet ones as well."
|
|
icon_state = "earmuffs"
|
|
item_state = "earmuffs"
|
|
flags = EARBANGPROTECT
|
|
strip_delay = 15
|
|
put_on_delay = 25
|
|
resistance_flags = FLAMMABLE
|
|
|
|
/obj/item/clothing/ears/earmuffs/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/earhealing)
|
|
|
|
/obj/item/clothing/ears/earmuffs/equipped(mob/user, slot)
|
|
. = ..()
|
|
if(ishuman(user) && ((slot == SLOT_HUD_LEFT_EAR) || (slot == SLOT_HUD_RIGHT_EAR)))
|
|
ADD_TRAIT(user, TRAIT_DEAF, "[CLOTHING_TRAIT][UID()]")
|
|
|
|
/obj/item/clothing/ears/earmuffs/dropped(mob/user)
|
|
. = ..()
|
|
REMOVE_TRAIT(user, TRAIT_DEAF, "[CLOTHING_TRAIT][UID()]")
|