Custom food can now be renamed, as the tip indicates. (#24402)

* Custom food can now be renamed, as the tip indicates.

* Descriptive variable names are good.
This commit is contained in:
Charlie Nolan
2024-03-11 13:05:46 -04:00
committed by GitHub
parent b897966381
commit c390cc9ee1
@@ -336,6 +336,12 @@ do {\
/obj/item/food/snacks/customizable/attackby(obj/item/I, mob/user, params)
if(is_pen(I))
var/new_name = rename_interactive(user, I, use_prefix = FALSE)
if(!isnull(new_name))
to_chat(user, "<span class='notice'>You declare this to be \a [name]. Delicious!</span>")
return
if(!istype(I, /obj/item/food/snacks))
to_chat(user, "<span class='warning'>[I] isn't exactly something that you would want to eat.</span>")
return