mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-30 03:12:53 +00:00
28 lines
700 B
Plaintext
28 lines
700 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
|
|
burn_state = FLAMMABLE
|
|
|
|
/obj/item/clothing/ears/headphones
|
|
name = "headphones"
|
|
desc = "Unce unce unce unce."
|
|
var/on = 0
|
|
icon_state = "headphones0"
|
|
item_state = "earmuffs"
|
|
actions_types = list(/datum/action/item_action/toggle_headphones)
|
|
burn_state = FLAMMABLE
|
|
|
|
/obj/item/clothing/ears/headphones/attack_self(mob/user)
|
|
on = !on
|
|
icon_state = "headphones[on]"
|
|
|
|
for(var/X in actions)
|
|
var/datum/action/A = X
|
|
A.UpdateButtonIcon()
|
|
|
|
user.update_inv_ears() |