RimWorld

RimWorld

Not enough ratings
Don't Xeno my Baby
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.6
File Size
Posted
5.257 KB
4 Oct @ 5:02am
1 Change Note ( view )

Subscribe to download
Don't Xeno my Baby

Description
Makes Xenotype Spawn Control not affect newborns.
Otherwise, you get nonsensical offspring, or if you have the player faction set to spawn Baseliners it will still override the xenotype with baseliner (but genes will be correct)


Theoretically if a newborn is generated by means other then childbirth this will stop it from getting a xenotype but whatever, I don't know of a way that can happen.

The entire source code (pretty much):

[HarmonyPatch(typeof(XenotypeSpawnControl.HarmonyPatches.PawnGenerator_GenerateGenes), nameof(XenotypeSpawnControl.HarmonyPatches.PawnGenerator_GenerateGenes.Prefix))]
static class ThePatch {
static bool Prefix(ref PawnGenerationRequest request) {
return request.AllowedDevelopmentalStages != DevelopmentalStage.Newborn;
}}