public override ThinkNode DeepCopy(bool resolve = true)
        {
            JobGiver_GetRestWendigos obj = (JobGiver_GetRestWendigos)base.DeepCopy(resolve);

            obj.minCategory        = minCategory;
            obj.maxLevelPercentage = maxLevelPercentage;
            return(obj);
        }
        protected override Job TryGiveJob(Pawn pawn)
        {
            var wendigo = pawn as Wendigo;

            if (!wendigo.InSafePlace)
            {
                var spot = JobGiver_GetRestWendigos.FindGroundSafeSpotFor(wendigo);
                if (spot.IsValid)
                {
                    Job job = JobMaker.MakeJob(JobDefOf.Flee, spot);
                    job.locomotionUrgency = LocomotionUrgency.Sprint;
                    return(job);
                }
            }
            return(null);
        }