isEdible tweak

Animals can now eat dead animals who were previously inedible
This commit is contained in:
Razgriz
2019-10-07 04:36:57 -07:00
committed by GitHub
parent 4c86d30af3
commit bbc2122367
@@ -87,7 +87,7 @@
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.
if(!M.isEdible && M.stat != DEAD)//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