Unanchored stools and chairs

Players can still anchor/unanchor stools, chairs and beds with screwdrivers
This commit is contained in:
Chinsky
2012-04-24 21:47:17 +04:00
parent d4fba2a721
commit 1b2a8b8dc5
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -19,6 +19,13 @@
del(src)
/obj/structure/stool/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/screwdriver))
if (src.anchored)
src.anchored = 0
user << "/blue You unfasten [src] from the floor."
else
src.anchored = 1
user << "/blue You fasten [src] to the floor."
if(istype(W, /obj/item/weapon/wrench))
playsound(src.loc, 'Ratchet.ogg', 50, 1)
new /obj/item/stack/sheet/metal(src.loc)