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

namespace CultOfCthulhu
{
    public class MentalStateWorker_Disillusioned : MentalStateWorker
    {
        public override bool StateCanOccur(Pawn pawn)
        {
            if (!base.StateCanOccur(pawn)) return false;
            if (!pawn.Spawned) return false;
            Need_CultMindedness cultMind = pawn.needs.TryGetNeed<Need_CultMindedness>();
            if (cultMind != null)
            {
                if (cultMind.CurLevel > 0.8) return true;
            }
            return false;
        }

    }
}
