This commit is contained in:
BurgerLua
2018-08-05 19:23:08 -07:00
parent 6de5ccca15
commit afb9755a03
3 changed files with 5 additions and 2 deletions
@@ -44,6 +44,8 @@
var/trans = reagents.trans_to_mob(M, amount_per_transfer_from_this, CHEM_BLOOD)
admin_inject_log(user, M, src, contained, trans)
to_chat(user,"<span class='notice'>[trans] units injected. [reagents.total_volume] units remaining in \the [src].</span>")
update_icon()
return
@@ -65,7 +67,6 @@
..()
if(reagents.total_volume <= 0) //Prevents autoinjectors to be refilled.
flags &= ~OPENCONTAINER
update_icon()
return
/obj/item/weapon/reagent_containers/hypospray/autoinjector/update_icon()
@@ -66,13 +66,14 @@
playsound(src.loc, 'sound/items/stimpack.ogg', 50, 1)
to_chat(user,"<span class='notice'>[trans] units injected. [reagents.total_volume] units remaining in \the [src].</span>")
update_icon()
return
/obj/item/weapon/reagent_containers/inhaler/attack(mob/M as mob, mob/user as mob)
..()
if(reagents.total_volume <= 0) //Prevents autoinjectors to be refilled.
flags &= ~OPENCONTAINER
update_icon()
return
/obj/item/weapon/reagent_containers/inhaler/update_icon()
+1
View File
@@ -36,3 +36,4 @@ delete-after: True
changes:
- bugfix: "Fixes condiments, including salt and pepper, not being able to be poured."
- bugfix: "Fixes objects getting stuck in xenobiology disposals."
- bugfix: "Fixes autoinhalers and autoinjectors refusing to change their icons after use."