Stairs are Dangerous (#9210)

* Crates, closets, rollerbeds and wheelchairs now cannot safely traverse
stairs.
This commit is contained in:
Geeves
2024-05-12 19:01:38 +00:00
committed by GitHub
parent 43cd06acf9
commit 3920f83d0f
5 changed files with 51 additions and 0 deletions
@@ -765,6 +765,19 @@
QDEL_NULL(linked_teleporter)
return ..()
/obj/structure/closet/stair_act()
if(opened || !can_open())
return
visible_message(SPAN_WARNING("\The [src] flies open as it bounces on the stairs!"))
for(var/thing in src)
var/atom/movable/AM = thing
AM.forceMove(get_turf(src))
AM.throw_at_random(TRUE, 1, 2)
open()
return ..()
/*
==========================
Contents Scanner