예제 #1
0
        public static Pawn RandomizeInPlace(Pawn p)
        {
            int  index = StartingPawnUtility.StartingPawns.IndexOf(p);
            Pawn pawn  = StartingPawnUtility.RegenerateStartingPawnInPlace(index);

            if (pawn.story.WorkTagIsDisabled(WorkTags.ManualDumb) || pawn.story.WorkTagIsDisabled(WorkTags.Violent))
            {
                pawn = StartingPawnUtility.RegenerateStartingPawnInPlace(index);
            }
            return(pawn);
        }
예제 #2
0
        public static Pawn RandomizeInPlace(Pawn p)
        {
            int index = StartingPawnUtility.StartingAndOptionalPawns.IndexOf(p);

            return(StartingPawnUtility.RegenerateStartingPawnInPlace(index));
        }