Restrained spacepod passanger can now exit pod after 2 minutes

This commit is contained in:
MINIMAN10000
2018-07-02 00:36:58 -07:00
parent 3ca333d666
commit 288c16df1b
+7 -1
View File
@@ -812,11 +812,17 @@ obj/spacepod/proc/add_equipment(mob/user, var/obj/item/spacepod_equipment/SPE, v
if(!istype(user))
return
if(usr.incapacitated()) // unconscious and restrained people can't let themselves out
if(usr.stat) // unconscious people can't let themselves out
return
occupant_sanity_check()
if(usr.restrained())
to_chat(usr, "<span class='notice'>You attempt to stumble out of the [src]. This will take two minutes.</span>")
if(do_after(usr, 1200, target = src))
else
return
if(user == pilot)
user.forceMove(get_turf(src))
pilot = null