Adds sanity checks to hair styling (#7953)

Adds sanity checks to hair styling
This commit is contained in:
Arturlang
2020-01-10 13:52:07 +01:00
committed by Matt Atlas
parent a9aa01c08b
commit 008bc38701
2 changed files with 45 additions and 0 deletions
@@ -5,6 +5,10 @@
set name = "Tie Hair"
set desc = "Style your hair."
set category = "IC"
if(!use_check_and_message())
to_chat(src, span("warning", "You can't tie your hair when you are incapacitated!"))
return
if(h_style)
var/datum/sprite_accessory/hair/hair_style = hair_styles_list[h_style]