From 8b5e3e6004708e908da17bd713d3f13f295e0480 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 5 Feb 2020 14:55:47 +0100 Subject: [PATCH] Removes the shitty verb --- .../reagents/reagent_containers/hypospray.dm | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/code/modules/reagents/reagent_containers/hypospray.dm b/code/modules/reagents/reagent_containers/hypospray.dm index f4bb5e0d08..da99cd184b 100644 --- a/code/modules/reagents/reagent_containers/hypospray.dm +++ b/code/modules/reagents/reagent_containers/hypospray.dm @@ -423,18 +423,19 @@ else unload_hypo(vial,user) -/obj/item/hypospray/mkii/verb/modes() - set name = "Toggle Application Mode" - set category = "Object" - set src in usr - var/mob/M = usr - switch(mode) - if(HYPO_SPRAY) - mode = HYPO_INJECT - to_chat(M, "[src] is now set to inject contents on application.") - if(HYPO_INJECT) - mode = HYPO_SPRAY - to_chat(M, "[src] is now set to spray contents on application.") +/obj/item/hypospray/mkii/AltClick(mob/living/user) + if(user.canUseTopic(src, BE_CLOSE, FALSE,)) + switch(mode) + if(HYPO_SPRAY) + mode = HYPO_INJECT + to_chat(user, "[src] is now set to inject contents on application.") + if(HYPO_INJECT) + mode = HYPO_SPRAY + to_chat(user, "[src] is now set to spray contents on application.") + +/obj/item/hypospray/mkii/examine(mob/user) + . = ..() + . += "You can click on it while holding Alt to toggle its mode from spraying to injecting." #undef HYPO_SPRAY #undef HYPO_INJECT