Files
Polaris/code/modules/clothing/head/soft_caps.dm
2015-08-12 00:58:40 -04:00

83 lines
2.3 KiB
Plaintext

/obj/item/clothing/head/soft
name = "cargo cap"
desc = "It's a peaked cap in a tasteless yellow color."
icon_state = "cargosoft"
item_state = "helmet"
var/flipped = 0
siemens_coefficient = 0.9
body_parts_covered = 0
dropped()
src.icon_state = initial(icon_state)
src.flipped=0
..()
verb/flip()
set category = "Object"
set name = "Flip cap"
set src in usr
if(usr.canmove && !usr.stat && !usr.restrained())
src.flipped = !src.flipped
if(src.flipped)
icon_state = "[icon_state]_flipped"
usr << "You flip the hat backwards."
else
src.icon_state = initial(icon_state)
usr << "You flip the hat back in normal position."
update_clothing_icon() //so our mob-overlays update
/obj/item/clothing/head/soft/red
name = "red cap"
desc = "It's a baseball hat in a tasteless red color."
icon_state = "redsoft"
/obj/item/clothing/head/soft/blue
name = "blue cap"
desc = "It's a peaked cap in a tasteless blue color."
icon_state = "bluesoft"
/obj/item/clothing/head/soft/green
name = "green cap"
desc = "It's a peaked cap in a tasteless green color."
icon_state = "greensoft"
/obj/item/clothing/head/soft/yellow
name = "yellow cap"
desc = "It's a peaked cap in a tasteless yellow color."
icon_state = "yellowsoft"
/obj/item/clothing/head/soft/grey
name = "grey cap"
desc = "It's a peaked cap in a tasteful grey color."
icon_state = "greysoft"
/obj/item/clothing/head/soft/orange
name = "orange cap"
desc = "It's a peaked cap in a tasteless orange color."
icon_state = "orangesoft"
/obj/item/clothing/head/soft/mime
name = "white cap"
desc = "It's a peaked cap in a tasteless white color."
icon_state = "mimesoft"
/obj/item/clothing/head/soft/purple
name = "purple cap"
desc = "It's a peaked cap in a tasteless purple color."
icon_state = "purplesoft"
/obj/item/clothing/head/soft/rainbow
name = "rainbow cap"
desc = "It's a peaked cap in a bright rainbow of colors."
icon_state = "rainbowsoft"
/obj/item/clothing/head/soft/sec
name = "security cap"
desc = "It's a field cap in tasteful red color."
icon_state = "secsoft"
/obj/item/clothing/head/soft/sec/corp
name = "corporate security cap"
desc = "It's field cap in corporate colors."
icon_state = "corpsoft"