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:
PsiOmegaDelta
2015-10-22 16:47:32 +02:00
parent db833735a8
commit 8305404a14
4 changed files with 18 additions and 6 deletions

View File

@@ -34,6 +34,11 @@
else
return ..()
if(ishuman(M))
var/mob/living/carbon/human/H = M
if(!H.can_eat(src))
return
if (reagents.total_volume > 0)
reagents.trans_to_mob(M, reagents.total_volume, CHEM_INGEST)
if(M == user)