边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Don't Xeno my Baby
   
奖励
收藏
已收藏
取消收藏
Mod, 1.6
文件大小
发表于
5.257 KB
10 月 4 日 上午 5:02
1 项改动说明 ( 查看 )

订阅以下载
Don't Xeno my Baby

描述
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;
}}