mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
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:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user