Wearable wet floor sign (#7575)

You can now wear the wet floor sign.
Also tidies up some code here and there.
Adds some descriptions too.

It provides extremely minor armor.
This commit is contained in:
Wowzewow (Wezzy)
2019-12-19 21:33:28 +02:00
committed by Erki
parent b707b004e2
commit 8dddda141b
22 changed files with 142 additions and 83 deletions
-44
View File
@@ -318,50 +318,6 @@
origin_tech = list(TECH_MATERIAL = 1)
var/breakouttime = 300 //Deciseconds = 30s = 0.5 minute
/obj/item/caution
desc = "Caution! Wet Floor!"
name = "wet floor sign"
icon = 'icons/obj/janitor.dmi'
icon_state = "caution"
force = 1.0
throwforce = 3.0
throw_speed = 1
throw_range = 5
w_class = 2.0
attack_verb = list("warned", "cautioned", "smashed")
drop_sound = 'sound/items/drop/shoes.ogg'
/obj/item/caution/attack_self(mob/user as mob)
if(src.icon_state == "caution")
src.icon_state = "caution_blinking"
to_chat(user, "You turn the sign on.")
else
src.icon_state = "caution"
to_chat(user, "You turn the sign off.")
/obj/item/caution/AltClick()
if(!usr || usr.stat || usr.lying || usr.restrained() || !Adjacent(usr)) return
if(src.icon_state == "caution")
src.icon_state = "caution_blinking"
to_chat(usr, "You turn the sign on.")
else
src.icon_state = "caution"
to_chat(usr, "You turn the sign off.")
/obj/item/caution/cone
desc = "This cone is trying to warn you of something!"
name = "warning cone"
icon_state = "cone"
item_state = "cone"
contained_sprite = 1
slot_flags = SLOT_HEAD
/obj/item/caution/cone/attack_self(mob/user as mob)
return
/obj/item/caution/cone/AltClick()
return
/*/obj/item/syndicate_uplink
name = "station bounced radio"
desc = "Remain silent about this..."