The action button should be correctly handled in chem implants by injecting all the reagents if the action buttion is the cause

This commit is contained in:
Zelacks
2015-03-20 03:58:58 +08:00
parent b5979a49fe
commit 8e2850f832
2 changed files with 12 additions and 1 deletions
@@ -141,7 +141,12 @@
/obj/item/weapon/implant/chem/activate(var/cause)
if(!cause || !imp_in) return 0
var/mob/living/carbon/R = imp_in
reagents.trans_to(R, cause)
var/injectamount = null
if (cause == "action_button")
injectamount = reagents.total_volume
else
injectamount = cause
reagents.trans_to(R, injectamount)
R << "You hear a faint *beep*."
if(!reagents.total_volume)
R << "You hear a faint click from your chest."