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); }
public static Pawn RandomizeInPlace(Pawn p) { int index = StartingPawnUtility.StartingAndOptionalPawns.IndexOf(p); return(StartingPawnUtility.RegenerateStartingPawnInPlace(index)); }