isEdible fix loop fix

Prevents vore mobs from attempting to vore other mobs that are inedible. Without this they just got stuck in a loop trying to eat each other and deal no damage.
This commit is contained in:
Razgriz
2019-09-24 03:35:51 -07:00
committed by GitHub
parent d21fe277d2
commit a513eefe70
@@ -87,6 +87,9 @@
if(vore_capacity != 0 && (vore_fullness >= vore_capacity)) // We're too full to fit them
ai_log("vr/wont eat [M] because I am too full", 3)
return 0
if(!M.isEdible)//Don't eat mobs that can't be eaten.
ai_log("vr/wont eat [M] because they aren't edible", 3)
return 0
return 1
/mob/living/simple_animal/PunchTarget()