diff --git a/code/modules/client/preferences_gear.dm b/code/modules/client/preferences_gear.dm index d416f198d6a..c8f811641a2 100644 --- a/code/modules/client/preferences_gear.dm +++ b/code/modules/client/preferences_gear.dm @@ -1712,6 +1712,12 @@ var/global/list/gear_datums = list() cost = 1 sort_category = "ears" +/datum/gear/headphones + display_name = "headphones" + path = /obj/item/clothing/ears/earmuffs/headphones + cost = 1 + sort_category = "ears" + /datum/gear/skrell_chain display_name = "skrell headtail-wear, female, chain" path = /obj/item/clothing/ears/skrell/chain diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 319c2a2c487..5f9a19fa45d 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -163,6 +163,32 @@ item_state = "earmuffs" slot_flags = SLOT_EARS | SLOT_TWOEARS +/obj/item/clothing/ears/earmuffs/headphones + name = "headphones" + desc = "Unce unce unce unce." + var/headphones_on = 0 + icon_state = "headphones_off" + item_state = "headphones" + slot_flags = SLOT_EARS | SLOT_TWOEARS + +/obj/item/clothing/ears/earmuffs/headphones/verb/togglemusic() + set name = "Toggle Headphone Music" + set category = "Object" + set src in usr + if(!istype(usr, /mob/living)) return + if(usr.stat) return + + if(headphones_on) + icon_state = "headphones_off" + headphones_on = 0 + usr << "You turn the music off." + else + icon_state = "headphones_on" + headphones_on = 1 + usr << "You turn the music on." + + update_clothing_icon() + /////////////////////////////////////////////////////////////////////// //Glasses /* diff --git a/icons/mob/ears.dmi b/icons/mob/ears.dmi index b99a8640879..890170f4d27 100644 Binary files a/icons/mob/ears.dmi and b/icons/mob/ears.dmi differ diff --git a/icons/obj/items.dmi b/icons/obj/items.dmi index edad6bc696c..10460c3b3c4 100644 Binary files a/icons/obj/items.dmi and b/icons/obj/items.dmi differ