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-20 03:33:28 +08:00
committed by Erki
parent b707b004e2
commit 8dddda141b
22 changed files with 142 additions and 83 deletions
@@ -75,10 +75,10 @@
new /obj/item/clothing/head/soft/purple(src)
new /obj/item/gun/energy/mousegun(src)
new /obj/item/device/flashlight(src)
new /obj/item/caution(src)
new /obj/item/caution(src)
new /obj/item/caution(src)
new /obj/item/caution(src)
new /obj/item/clothing/suit/caution(src)
new /obj/item/clothing/suit/caution(src)
new /obj/item/clothing/suit/caution(src)
new /obj/item/clothing/suit/caution(src)
new /obj/item/device/lightreplacer(src)
new /obj/item/storage/bag/trash(src)
new /obj/item/clothing/shoes/galoshes(src)
+3 -3
View File
@@ -127,7 +127,7 @@
to_chat(user, "<span class='notice'>You put [I] into [src].</span>")
return 1
else if(istype(I, /obj/item/caution))
else if(istype(I, /obj/item/clothing/suit/caution))
if(signs < 4)
user.drop_from_inventory(I,src)
signs++
@@ -191,7 +191,7 @@
mybucket = null
if (signs)
for (var/obj/item/caution/Sign in src)
for (var/obj/item/clothing/suit/caution/Sign in src)
if (prob(min((chance*2),100)))
signs--
Sign.forceMove(dropspot)
@@ -261,7 +261,7 @@
myreplacer = null
if("sign")
if(signs)
var/obj/item/caution/Sign = locate() in src
var/obj/item/clothing/suit/caution/Sign = locate() in src
if(Sign)
user.put_in_hands(Sign)
to_chat(user, "<span class='notice'>You take \a [Sign] from [src].</span>")