Example #1
0
        internal bool CheckStartMentalStateBecauseRecruitAttempted(Pawn tamer)
        {
            bool result;

            if (!this.pawn.RaceProps.Animal && (!this.pawn.IsWildMan() || this.pawn.IsPrisoner))
            {
                result = false;
            }
            else if (!this.mentalStateHandler.InMentalState && this.pawn.Faction == null && Rand.Value < PawnUtility.GetManhunterOnTameFailChance(this.pawn))
            {
                this.StartManhunterBecauseOfPawnAction("AnimalManhunterFromTaming");
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }