diff --git a/code/modules/aurora/banner.dm b/code/modules/aurora/banner.dm index 1d4c47ec..862a5b3d 100644 --- a/code/modules/aurora/banner.dm +++ b/code/modules/aurora/banner.dm @@ -8,6 +8,7 @@ layer = 9 icon = 'icons/obj/banner.dmi' icon_state = "banner_down" + var/secured = 1 /obj/structure/banner/verb/toggle() set src in oview(1) @@ -28,4 +29,23 @@ usr << "You feel slightly dumber." return - src.update_icon() \ No newline at end of file + src.update_icon() + +/obj/structure/banner/attackby(obj/item/W, mob/user) + if(istype(W, /obj/item/weapon/wrench)) + switch(secured) + if(0) + secured = 1 + playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) + user.visible_message("[user.name] secures [src.name] to the floor.", \ + "You secure [src.name] to the floor.", \ + "You hear a ratchet") + src.anchored = 1 + if(1) + secured = 0 + playsound(src.loc, 'sound/items/Ratchet.ogg', 75, 1) + user.visible_message("[user.name] unsecures [src.name] reinforcing bolts from the floor.", \ + "You unsecure [src.name] from the floor.", \ + "You hear a ratchet") + src.anchored = 0 + return \ No newline at end of file