Beispiel #1
0
 private static bool Prefix(ref PawnGenerationRequest request)
 {
     if (!request.Newborn)
     {
         request = new PawnGenerationRequest(RaceAddonTools.RandomPawnKindDefFromRaceAddonPawnKindDef(request.KindDef), request.Faction,
                                             request.Context, request.Tile, request.ForceGenerateNewPawn, request.Newborn,
                                             request.AllowDead, request.AllowDowned, request.CanGeneratePawnRelations,
                                             request.MustBeCapableOfViolence, request.ColonistRelationChanceFactor, request.ForceAddFreeWarmLayerIfNeeded,
                                             request.AllowGay, request.AllowFood, request.AllowAddictions, request.Inhabitant,
                                             request.CertainlyBeenInCryptosleep, request.ForceRedressWorldPawnIfFormerColonist, request.WorldPawnFactionDoesntMatter,
                                             request.BiocodeWeaponChance, request.ExtraPawnForExtraRelationChance, request.RelationWithExtraPawnChanceFactor,
                                             request.ValidatorPreGear, request.ValidatorPostGear, request.ForcedTraits,
                                             request.ProhibitedTraits, request.MinChanceToRedressWorldPawn, request.FixedBiologicalAge,
                                             request.FixedChronologicalAge, request.FixedGender, request.FixedMelanin, request.FixedLastName,
                                             request.FixedBirthName, request.FixedTitle);
     }
     return(true);
 }