mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 09:08:30 +01:00
Fixes chem implant injections not counting as such (#96701)
## About The Pull Request Closes #96697 ## Changelog 🆑 fix: Fixed chem implant injections not counting as such /🆑
This commit is contained in:
@@ -79,16 +79,16 @@
|
||||
. = ..()
|
||||
if(!cause || !imp_in)
|
||||
return
|
||||
var/mob/living/carbon/R = imp_in
|
||||
var/mob/living/carbon/victim = imp_in
|
||||
var/injectamount = null
|
||||
if (cause == "action_button")
|
||||
injectamount = reagents.total_volume
|
||||
else
|
||||
injectamount = cause
|
||||
reagents.trans_to(R, injectamount)
|
||||
to_chat(R, span_hear("You hear a faint beep."))
|
||||
reagents.trans_to(victim, injectamount, methods = INJECT)
|
||||
to_chat(victim, span_hear("You hear a faint beep."))
|
||||
if(!reagents.total_volume)
|
||||
to_chat(R, span_hear("You hear a faint click from your chest."))
|
||||
to_chat(victim, span_hear("You hear a faint click from your chest."))
|
||||
qdel(src)
|
||||
|
||||
/obj/item/implant/chem/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
|
||||
|
||||
Reference in New Issue
Block a user