[Ready]Medipens no longer instantly inject if you walk while do_after is still going (#52712)

* E

* E

* Update code/modules/reagents/reagent_containers/hypospray.dm

Co-authored-by: Rohesie <rohesie@gmail.com>

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
EdgeLordExe
2020-08-07 21:23:41 +02:00
committed by GitHub
parent 19c3bbde31
commit d91e13f874
@@ -224,17 +224,22 @@
list_reagents = list( /datum/reagent/medicine/epinephrine = 8, /datum/reagent/medicine/c2/aiuri = 8, /datum/reagent/medicine/c2/libital = 8 ,/datum/reagent/medicine/leporazine = 6)
/obj/item/reagent_containers/hypospray/medipen/survival/inject(mob/living/M, mob/user)
if(!lavaland_equipment_pressure_check(get_turf(user)))
if(M in user.do_afters)
to_chat(user,"<span class='notice'>You are too busy to use \the [src]!</span>")
return
to_chat(user,"<span class='notice'>You start manually releasing the low-pressure gauge...</span>")
if(do_mob(user, M ,10 SECONDS))
amount_per_transfer_from_this = initial(amount_per_transfer_from_this) * 0.5
return ..()
amount_per_transfer_from_this = initial(amount_per_transfer_from_this)
if(lavaland_equipment_pressure_check(get_turf(user)))
amount_per_transfer_from_this = initial(amount_per_transfer_from_this)
return ..()
if(M in user.do_afters)
to_chat(user,"<span class='notice'>You are too busy to use \the [src]!</span>")
return
to_chat(user,"<span class='notice'>You start manually releasing the low-pressure gauge...</span>")
if(!do_mob(user, M, 10 SECONDS))
return
amount_per_transfer_from_this = initial(amount_per_transfer_from_this) * 0.5
return ..()
/obj/item/reagent_containers/hypospray/medipen/survival/luxury
name = "luxury medipen"
desc = "Cutting edge bluespace technology allowed Nanotrasen to compact 60u of volume into a single medipen. Contains rare and powerful chemicals used to aid in exploration of very hard enviroments. WARNING: DO NOT MIX WITH EPINEPHRINE OR ATROPINE."