Files
Aurora.3/code/game/objects/structures/banner.dm
Alberyk aadd7fe9df Makes the spawn area more greytide proof (#2299)
-banners, vending machines, plants and chairs can't be moved or dismantled in the spawn area
-added access to some airlocks and buttons where it was missing
-fixed messed up windows near the lift in the main station level
-added some webbings around the ert and merc areas
2017-05-20 00:38:59 +03:00

48 lines
1.3 KiB
Plaintext

/obj/structure/banner
name = "corporate banner"
desc = "A blue flag emblazoned with a golden logo of Nanotrasen hanging from a wooden stand."
anchored = 1
density = 1
layer = 9
icon = 'icons/obj/banner.dmi'
icon_state = "banner_down"
/obj/structure/banner/verb/toggle()
set src in oview(1)
set category = "Object"
set name = "Toggle Banner"
if(!usr.canmove || usr.stat || usr.restrained())
return 0
switch(icon_state)
if("banner_down")
src.icon_state = "banner_up"
usr << "You roll up the cloth."
if("banner_up")
src.icon_state = "banner_down"
usr << "You let the cloth hang loose."
else
usr << "You feel slightly dumber."
return
src.update_icon()
/obj/structure/banner/attackby(obj/item/W, mob/user)
if(istype(W, /obj/item/weapon/wrench))
switch(anchored)
if(0)
anchored = 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")
if(1)
anchored = 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")
return
/obj/structure/banner/unmovable
/obj/structure/banner/unmovable/attackby(obj/item/W, mob/user)
return