using System;
using System.Collections.Generic;
using System.Linq;
using RimWorld;
using Verse;

namespace SCE
{
    public class Precept_UsesVeneratedAnimal : Precept
    {
        public override bool GetPlayerWarning(out string shortText, out string description)
        {
            if (!ideo.VeneratedAnimals.Any())
            {
                shortText = "MessageIdeo_WarnPreceptRequiresVeneratedAnimals".Translate();
                description = "DescriptionIdeo_WarnPreceptRequiresVeneratedAnimals".Translate().Formatted(this.name);
                return true;
            }
            shortText = description = null;
            return false;
        }
    }
}