Lets you rename a hypospray with a pen. (#24983)

* this would be nice

* add examine

* this is why we test
This commit is contained in:
Luc
2024-04-07 09:55:04 +00:00
committed by GitHub
parent acc1a47749
commit f85ccda713
@@ -60,6 +60,18 @@
/obj/item/reagent_containers/hypospray/attack_self(mob/user)
return apply(user, user)
/obj/item/reagent_containers/hypospray/attackby(obj/item/I, mob/user, params)
if(is_pen(I))
rename_interactive(user, I, use_prefix = TRUE, prompt = "Give [src] a title.")
return TRUE
return ..()
/obj/item/reagent_containers/hypospray/examine(mob/user)
. = ..()
if(Adjacent(user))
. += "<span class='notice'>You can use a pen to add a label to [src].</span>"
/obj/item/reagent_containers/hypospray/on_reagent_change()
if(safety_hypo && !emagged)
var/found_forbidden_reagent = FALSE