mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user