not do_after, not equal concious, warn pilot if there is one

This commit is contained in:
MINIMAN10000
2018-07-02 11:09:35 -07:00
parent 288c16df1b
commit 17a4d52101
+4 -3
View File
@@ -812,15 +812,16 @@ obj/spacepod/proc/add_equipment(mob/user, var/obj/item/spacepod_equipment/SPE, v
if(!istype(user))
return
if(usr.stat) // unconscious people can't let themselves out
if(usr.stat != CONSCIOUS) // 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
if(pilot)
to_chat(pilot, "<span class='warning'>[usr] is trying to escape the [src].</span>")
if(!do_after(usr, 1200, target = src))
return
if(user == pilot)