mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 00:35:45 +01:00
[MIRROR] Axes do_mob and replaces with do_after (#11938)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
9645b165d5
commit
e61bebfbb3
@@ -150,7 +150,7 @@
|
||||
GLOB.global_announcer.autosay("[src] is treating <b>[H]</b> in <b>[location]</b>", "[src]", "Medical")
|
||||
busy = 1
|
||||
update_icons()
|
||||
if(do_mob(src, H, 30))
|
||||
if(do_after(src, 3 SECONDS, H))
|
||||
if(t == 1)
|
||||
reagent_glass.reagents.trans_to_mob(H, injection_amount, CHEM_BLOOD)
|
||||
else
|
||||
|
||||
@@ -337,7 +337,7 @@
|
||||
playsound(src, 'sound/weapons/handcuffs.ogg', 30, 1, -2)
|
||||
visible_message(span_warning("\The [src] is trying to put handcuffs on \the [H]!"))
|
||||
busy = TRUE
|
||||
if(do_mob(src, H, 60))
|
||||
if(do_after(src, 6 SECONDS, H))
|
||||
if(!H.handcuffed)
|
||||
if(istype(H.back, /obj/item/rig) && istype(H.gloves,/obj/item/clothing/gloves/gauntlets/rig))
|
||||
H.handcuffed = new /obj/item/handcuffs/cable(H) // Better to be cable cuffed than stun-locked
|
||||
|
||||
Reference in New Issue
Block a user