mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-27 10:32:40 +00:00
The dead can't rename food.
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
handle_name_change(usr)
|
||||
|
||||
/obj/item/reagent_containers/food/proc/handle_name_change(var/mob/living/user)
|
||||
if(!isliving(user) || user.stat == DEAD)
|
||||
to_chat(user, SPAN_NOTICE("The dead can't cook!"))
|
||||
return
|
||||
var/n_name = sanitizeSafe(input(user, "What would you like to name \the [src]? Leave blank to reset.", "Food Naming", null) as text, MAX_NAME_LEN)
|
||||
if(!n_name)
|
||||
n_name = initial(name)
|
||||
|
||||
Reference in New Issue
Block a user