Server.Mobiles.BaseCreature.CheckFoodPreference C# (CSharp) Method

CheckFoodPreference() public method

public CheckFoodPreference ( Item f ) : bool
f Item
return bool
        public virtual bool CheckFoodPreference( Item f )
        {
            if ( CheckFoodPreference( f, FoodType.Eggs, m_Eggs ) )
                return true;

            if ( CheckFoodPreference( f, FoodType.Fish, m_Fish ) )
                return true;

            if ( CheckFoodPreference( f, FoodType.GrainsAndHay, m_GrainsAndHay ) )
                return true;

            if ( CheckFoodPreference( f, FoodType.Meat, m_Meat ) )
                return true;

            if ( CheckFoodPreference( f, FoodType.FruitsAndVegies, m_FruitsAndVegies ) )
                return true;

            if ( CheckFoodPreference( f, FoodType.Gold, m_Gold ) )
                return true;

            return false;
        }

Same methods

BaseCreature::CheckFoodPreference ( Item fed, FoodType type, Type types ) : bool
BaseCreature