Escaping vr is no longer possible (#9671)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Colfer
2024-12-21 20:31:21 -08:00
committed by GitHub
parent d35faa5844
commit d4a7b03e67

View File

@@ -42,8 +42,14 @@ GLOBAL_LIST_EMPTY(unique_deployable)
else
. += "This capsule has an unknown template stored."
/obj/item/survivalcapsule/attack_self()
// CHOMPEdit Start
/obj/item/survivalcapsule/attack_self(mob/user as mob)
//Can't grab when capsule is New() because templates aren't loaded then
if(istype(get_area(user), /area/vr))
to_chat(user, span_danger("\The [src] does not appear to work in VR! This is useless to you!"))
return
. = ..()
// CHOMPEdit End
get_template()
if(!used)
loc.visible_message(span_warning("\The [src] begins to shake. Stand back!"))