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