Exemplo n.º 1
0
 /// <summary>
 /// Checks to see if the item can be eaten by a critter. This overload assumes that
 /// the item is not a plant.
 /// </summary>
 /// <param name="item">The item to check.</param>
 /// <param name="diet">The critter's diet.</param>
 /// <returns>true if the item is edible, or false otherwise.</returns>
 private static bool CanEatItem(KPrefabID item, Diet diet)
 {
     return(!item.HasAnyTags(ref SolidConsumerMonitor.creatureMask) && diet.GetDietInfo(
                item.PrefabTag) != null);
 }