Machines Buckle Checks and IV Interactions Fixes (#13661)

This commit is contained in:
VisVirific
2022-04-27 17:43:27 +02:00
committed by GitHub
parent 8f87b8983b
commit ecc606b6b2
9 changed files with 64 additions and 54 deletions
+5 -11
View File
@@ -337,18 +337,13 @@
to_chat(user, "<span class='warning'>The pod is locked.</span>")
return
var/mob/living/L = G.affecting
var/bucklestatus = L.bucklecheck(user)
if (!bucklestatus)
return
user.visible_message("<span class='notice'>[user] starts putting [L] into [src].</span>", "<span class='notice'>You start putting [L] into [src].</span>", range = 3)
if (do_mob(user, L, 30, needhand = 0))
var/bucklestatus = L.bucklecheck(user)
if (!bucklestatus)//incase the patient got buckled_to during the delay
return
if (bucklestatus == 2)
var/obj/structure/LB = L.buckled_to
LB.user_unbuckle(user)
if (L.client)
L.client.perspective = EYE_PERSPECTIVE
L.client.eye = src
@@ -377,8 +372,7 @@
return
var/bucklestatus = H.bucklecheck(user)
if (!bucklestatus)//We must make sure the person is unbuckled before they go in
if (!bucklestatus)
return
if(H == user)