protected override IntVec3 GetWanderRoot(Pawn pawn)
        {
            MentalState_WanderOwnRoom mentalState_WanderOwnRoom = pawn.MentalState as MentalState_WanderOwnRoom;

            if (mentalState_WanderOwnRoom != null)
            {
                return(mentalState_WanderOwnRoom.target);
            }
            return(pawn.Position);
        }
        protected override IntVec3 GetWanderRoot(Pawn pawn)
        {
            MentalState_WanderOwnRoom mentalState_WanderOwnRoom = pawn.MentalState as MentalState_WanderOwnRoom;
            IntVec3 result;

            if (mentalState_WanderOwnRoom != null)
            {
                result = mentalState_WanderOwnRoom.target;
            }
            else
            {
                result = pawn.Position;
            }
            return(result);
        }