Added another check for mobs buckled to roller beds (#20746)

Got stuck today due to being simultaneously buckled to a roller bed that
was being folded. Added another check to hopefully plug this issue.
This commit is contained in:
Cody Brittain
2025-05-09 06:54:13 +00:00
committed by GitHub
parent 92a4ebd3ea
commit fdd916dc4e
2 changed files with 62 additions and 0 deletions
@@ -447,6 +447,9 @@
update_icon()
/obj/structure/bed/roller/proc/collapse()
if(buckled)
to_chat(usr, SPAN_WARNING("\The [buckled] is on \the [src]. Remove them first."))
return
usr.visible_message(SPAN_NOTICE("<b>[usr]</b> collapses \the [src]."), SPAN_NOTICE("You collapse \the [src]"))
new held_item(get_turf(src))
qdel(src)
@@ -515,6 +518,7 @@
remove_vitals(user)
return
if(buckled)
to_chat(user, SPAN_WARNING("\The [buckled] is on \the [src]. Remove them first."))
return
collapse()