diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index 604eaa6a3a..5288843f57 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -31,7 +31,7 @@ /obj/item/weapon/reagent_containers/hypospray/attack(mob/living/M as mob, mob/user as mob) if(!reagents.total_volume) - user << "[src] is empty." + to_chat(user, "[src] is empty.") return if (!istype(M)) return @@ -40,21 +40,29 @@ if(istype(H)) var/obj/item/organ/external/affected = H.get_organ(user.zone_sel.selecting) if(!affected) - user << "\The [H] is missing that limb!" + to_chat(user, "\The [H] is missing that limb!") return else if(affected.robotic >= ORGAN_ROBOT) - user << "You cannot inject a robotic limb." + to_chat(user, "You cannot inject a robotic limb.") return + if(!H.stat) + if(H != user) + if(H.a_intent != I_HELP) + to_chat(user, "[H] is resisting your attempt to inject them with \the [src].") + to_chat(H, " [user] is trying to inject you with \the [src]!") + if(!do_after(user, 30)) + return + user.setClickCooldown(DEFAULT_QUICK_COOLDOWN) - user << "You inject [M] with [src]." - M << "You feel a tiny prick!" + to_chat(user, "You inject [M] with \the [src].") + to_chat(M, "You feel a tiny prick!") if(M.reagents) var/contained = reagentlist() var/trans = reagents.trans_to_mob(M, amount_per_transfer_from_this, CHEM_BLOOD) admin_inject_log(user, M, src, contained, trans) - user << "[trans] units injected. [reagents.total_volume] units remaining in \the [src]." + to_chat(user, "[trans] units injected. [reagents.total_volume] units remaining in \the [src].") if(!reusable && !used) used = !used @@ -110,7 +118,7 @@ user << "\The [src] already has a vial." else ..() - + /obj/item/weapon/reagent_containers/hypospray/autoinjector name = "autoinjector" desc = "A rapid and safe way to administer small amounts of drugs by untrained or trained personnel." diff --git a/html/changelogs/Anewbe - Hyposprays.yml b/html/changelogs/Anewbe - Hyposprays.yml new file mode 100644 index 0000000000..53749bc731 --- /dev/null +++ b/html/changelogs/Anewbe - Hyposprays.yml @@ -0,0 +1,36 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +################################# + +# Your name. +author: Anewbe + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - tweak: "Hyposprays and autoinjectors now have a delay on use when the target is conscious and not in Help Intent."