mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-24 17:11:40 +00:00
Can no longer use utensils to eat if you lack the means.
Humanoid mobs can no longer eat when missing a mouth or when their mouth is blocked when using utensils, same as when eating food directly. Fixes #11333.
This commit is contained in:
11
code/modules/mob/living/carbon/human/human_helpers.dm
Normal file
11
code/modules/mob/living/carbon/human/human_helpers.dm
Normal file
@@ -0,0 +1,11 @@
|
||||
/mob/living/carbon/human/proc/can_eat(var/food, var/feedback = 1)
|
||||
if(!check_has_mouth())
|
||||
if(feedback)
|
||||
src << "Where do you intend to put \the [food]? You don't have a mouth!"
|
||||
return 0
|
||||
var/obj/item/blocked = check_mouth_coverage()
|
||||
if(blocked)
|
||||
if(feedback)
|
||||
src << "<span class='warning'>\The [blocked] is in the way!</span>"
|
||||
return 0
|
||||
return 1
|
||||
Reference in New Issue
Block a user