Merge pull request #548 from EmperorJon/13_Dec._Headphones

HEADPHONES.
This commit is contained in:
Neerti
2015-12-12 23:20:00 -05:00
4 changed files with 32 additions and 0 deletions
+6
View File
@@ -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
+26
View File
@@ -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 << "<span class='notice'>You turn the music off.</span>"
else
icon_state = "headphones_on"
headphones_on = 1
usr << "<span class='notice'>You turn the music on.</span>"
update_clothing_icon()
///////////////////////////////////////////////////////////////////////
//Glasses
/*