mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-07 12:20:52 +01:00
ba5db365e3
* Adjust earwear for monitor heads. * Tweak soviet headset, correct icon code.
24 lines
765 B
Plaintext
24 lines
765 B
Plaintext
/obj/item/clothing/ears/earmuffs
|
|
name = "earmuffs"
|
|
desc = "Protects your hearing from loud noises, and quiet ones as well."
|
|
icon_state = "earmuffs"
|
|
icon_monitor = 'icons/mob/clothing/species/machine/monitor/ears.dmi'
|
|
flags = EARBANGPROTECT
|
|
strip_delay = 15
|
|
put_on_delay = 25
|
|
resistance_flags = FLAMMABLE
|
|
materials = list(MAT_METAL = 500, MAT_GLASS = 500)
|
|
|
|
/obj/item/clothing/ears/earmuffs/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/earhealing)
|
|
|
|
/obj/item/clothing/ears/earmuffs/equipped(mob/user, slot)
|
|
. = ..()
|
|
if(ishuman(user) && (slot & ITEM_SLOT_BOTH_EARS))
|
|
ADD_TRAIT(user, TRAIT_DEAF, "[CLOTHING_TRAIT][UID()]")
|
|
|
|
/obj/item/clothing/ears/earmuffs/dropped(mob/user)
|
|
. = ..()
|
|
REMOVE_TRAIT(user, TRAIT_DEAF, "[CLOTHING_TRAIT][UID()]")
|