Skip to content

Commit

Permalink
Merge pull request #8835 from Mechoid/BadGhostNoCooking
Browse files Browse the repository at this point in the history
The dead can't rename food.
  • Loading branch information
Spookerton committed Dec 3, 2022
2 parents 82ceadc + 479dc50 commit 0c30170
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/food/food.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
handle_name_change(usr)

/obj/item/reagent_containers/food/proc/handle_name_change(var/mob/living/user)
if(user.stat == DEAD || !(ishuman(user) || isrobot(user)))
to_chat(user, SPAN_WARNING("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)
Expand Down

0 comments on commit 0c30170

Please sign in to comment.