Merge pull request #12578 from GhostActual/tg-port-4

The Grand /TG Port - Part 4
This commit is contained in:
Casey
2022-04-02 23:28:42 -04:00
committed by CHOMPStation2
parent c08fe46e9a
commit 5c33d6ea19
19 changed files with 110 additions and 18 deletions

View File

@@ -357,3 +357,35 @@
/obj/structure/bed/alien/attackby(obj/item/weapon/W, mob/user)
return // No deconning.
/*
* Dirty Mattress
*/
/obj/structure/dirtybed
name = "dirty mattress"
desc = "A stained matress. Guess it's better than sleeping on the floor."
icon = 'icons/obj/furniture.dmi'
icon_state = "dirtybed"
pressure_resistance = 15
anchored = TRUE
can_buckle = TRUE
buckle_dir = SOUTH
buckle_lying = 1
/obj/structure/dirtybed/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(W.is_wrench())
playsound(src, W.usesound, 100, 1)
if(anchored)
user.visible_message("[user] begins unsecuring \the [src] from the floor.", "You start unsecuring \the [src] from the floor.")
else
user.visible_message("[user] begins securing \the [src] to the floor.", "You start securing \the [src] to the floor.")
if(do_after(user, 20 * W.toolspeed))
if(!src) return
to_chat(user, "<span class='notice'>You [anchored? "un" : ""]secured \the [src]!</span>")
anchored = !anchored
return
if(!anchored)
to_chat(user,"<span class='notice'> The bed isn't secured.</span>")
return