RimWorld

RimWorld

808 ratings
Better Gene Inheritance
3
6
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
446.760 KB
Oct 6, 2023 @ 12:31pm
Jul 29 @ 11:39am
21 Change Notes ( view )

Subscribe to download
Better Gene Inheritance

In 2 collections by RedMattis
Red's Workshop Mods
45 items
Quality of Life & Base Pack
69 items
Description
Much improved gene inheritance for Biotech.

I made this mod because I wasn't quite satisfied with the various gene inheritance mods already on the workshop.

With this mod you will get less babies skipping most of their parents genes and overall more logical inheritance.

In summary: better gene inheritance results.


Settings





You can set xenogene inheritance, archite gene inheritance, amount inherited from the (random) secondary parent, etc.


Details

If you really want to know how it works...

Unlike vanilla this mod will not give you a bunch of babies with 20% of their parents genes and a metabolism of 225%.

It will build up a list of semi-random genes to inherit, this list will also always include every shared by both parents. If the metabolism ends up too high it will remove genes with a metabolism cost; preferring those not shared by both parents.

If one parent has no genes with metabolism and are flagged as a baseliner then they will by default be used as the primary parent, meaning a random % of the other parent will be migrated over, this is to avoid combinations with baseliners sometimes creating babies with 100% of the other parent's genes.

Xenotypes, Runtime Xenotypes, and Custom user Xenotypes

The mod will now aggressively try to assign xenotypes. Even if the match isn't perfect the game will consider them to belong to the xenotype, which is important for ideologies.

if the child is too far away (less than 80% similar) to a xenotype of a parent they will be classified as a Hybrid, as in the image above, but the game will try to track down a suitable user-pickable icon if possible.

No more weird gene-stuffed baseliers babies

The game will take runtime-made xenotypes and user-made Custom Xenotypes into account for children using similar logic to the above. No more VampNekoMaid xenotypes breeding near-identical children that are somehow "Baseliners".



Inheritance Genes



By popular request there are now a few genes that modify how inheritance works.

Recessive and Dominant Genes
If a parent has dominant genes only their genes will be passed out and vice versa for recessive genes. If both have dominant/recessive genes it is random as usual.

Compatible with the genes from Vanilla Races Expanded - Highmate

Primary and Secondary Genes
Similar to the above, except instead of passing on only one set of genes, the genes of a character with "Primary Genes" will be considered the primary parent, and unless metabolism is too high all valid genes will try to be passed on. Note that genes from the other parent can still overwrite genes from the primary parent.

Secondary Genes of course does the opposite.

Binary Inheritance
The Binary Inheritance gene, if applied to BOTH parents will make it so an entire gene set from one parent will be picked at random. Suitable for xenotypes with castes or extreme sexual dimorphism.


Other Features


The mod will automatically try to swap the displayed xenotype if enough genes are shared with either parent.
In middling situations they will be labeled a "hybrid [xenotype]" based on what they inherited most of, e.g. "Hybrid Nekomata", "Hybrid Yttakin", "Hyrid Impid", ...

This can be considered a fix to the dreaded "Baseliner" or "Hybrid" issue that happens a lot in vanilla


Final Word


Let me know if you have thoughts, feedback, any kind of issues, and so on.

Mod Discord
[discord.gg][ko-fi.com]
259 Comments
Eclair Aug 13 @ 4:50pm 
Hi, I think I found two bugs. First, with VRE - waster enabled, the xenotype label of baby is not gonna be named like "Hybrid <xenotype> or xenotype". Maybe overridden by the mod? Second, with the probability of xenogenes inherit set to 0, and the primary parent is impid and the second parent is genie for instance, the genes of the birthed baby will be a whole impid genes 100% regardless of the % settings in the game.
GoblinEngineer Aug 12 @ 6:36pm 
Hey RedMattis, I just wanted to let you know I seem to have run into a bug, but no errors are produced from it. I have several Sanguo-hybrid children, but one of them inherited both "Hemogen Drain" and "Bloodfeeder", but did not inherit the "Hemogenic" gene when it's required for both of the other two.
Simikiel Aug 12 @ 5:24pm 
I noticed that too, but while I'm obviously not certain, I'm kinda of the opinion that it's only there because the CE devs have so many of the mods made my Oskar Potocki and Sarg Bjornson that they just listed all the mods that *do* work, even if a patch wasn't needed for them.

Because the CE page says the only mods that need a patch are mods that "add weapons, animals, turrets, new pawn types (such as aliens, robots, or new factions)"
Ridigan Aug 12 @ 4:54pm 
scratch what I said, if Alpha Books needs a Combat Extended patch then maybe be wary for conflicts with Better Gene Inheritance
Ridigan Aug 12 @ 4:44pm 
@Simikiel I'm not RedMattis, but I would hazard a guess and say that Combat Extended shouldn't conflict with this mod since this mod just changes how genes are inherited (unless Combat Extended is such a huge overhaul of the game's various mechanics beyond combat that it also changes how genes are inherited)
Simikiel Aug 12 @ 4:32pm 
Really sorry to be that person who seems to be on every mod page ever, but does this work with Combat Extended? I did my due diligence and looked at supported mods on CE's Github, but this wasn't there, but it was mentioned that some mods do their own patches for it. I know that mods that add pawns need patches, but I don't know about genes.
Neuron Aug 12 @ 8:44am 
@RedMattis
Yup, that was exactly it, thank you!
Haven't really 'played' with the mod yet, new colony, with no kids yet etc, so i haven't seen it in action 😅 And from the description i (mis)understood that inherited xenogenes remains 'xeno' in the babies too.
Ridigan Aug 11 @ 12:33pm 
I see, picking one parent as the base so that the child will resemble the parents rather than drifting towards being a baseliner does make a lot of sense.

also, the idea of a fragile runner and a slow tank giving birth to a glass slug baby that only needs to eat once a week is pretty funny
RedMattis  [author] Aug 11 @ 9:15am 
@Neuron
All the genes will become endogenes/germline for the baby. No babies are born with xenogenes.

Or were you asking something else? I'm not sure if I'm reading the question right.

@Ridigan
Yes, that is correct. The reason for using one parent as the "base" is to make sure the children will gravitate towards one or the other.

Ludeon's 50%/50% chance basically means children will slowly gravitate towards baseliners without genes. If you go back a few pages here I think the was a discussion about this.

Re: high metabolism
Yes, they can end up with a very positive metabolism. This may happen if you for example breed a fragile speedster with a sluggish tank. You may end up with a fragile slug with amazing metabolic efficiency.
Neuron Aug 11 @ 2:20am 
Loving the idea of your mod, just wanted to mention a possible feature - which im not sure if already implemented, from the screenshot it kinda seems so, but it's not mentioned.
Could we (or do we) have the option to make inherited xenogenes "naturalized", meaning inherited xenogenes (if enabled) then become endogenes and part of the pawns 'core' germline.