RimWorld

RimWorld

872 ratings
Better Gene Inheritance
5
2
6
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
447.344 KB
Oct 6, 2023 @ 12:31pm
Aug 18 @ 1:06pm
22 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
[www.patreon.com]

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]
277 Comments
Tacobell554 Nov 6 @ 4:14am 
Are the sliders for xeno and archite gene inheritance weight additive and do they cap at 100%? For instance, if I drop xeno rate to 50% and have two parents with a shared xeno gene. Would that gene have the same inheritance chance as 100% chance endo genes that are also shared. Assuming a neutral metabolic rate for the sake of the scenario.
狼雨歌 Oct 31 @ 3:08am 
@Kaedys ,
Thank you so much for your help .
I have already disabled xenogenes inheritance in the settings .
Because in my game , dominant and recessive genes are both considered xenogenes .
狼雨歌 Oct 31 @ 2:57am 
Oh , I see !
I finally understand where I went wrong .
I thought the father carried the recessive gene and the mother carried the dominant gene , but it turns out it only requires one of them to have it .
Thank you for your explanation !
ShadowX116 Oct 30 @ 6:38pm 
So.. in theory, what happens if both pawns have Dominant-Binary?
Is there a special handle for that, or does it result in a toss-up?
justiceforjoggers Oct 30 @ 6:10pm 
Will this help also with babies being born with the wrong skin color? I have a pawn that keeps giving twins, and half the time the kids came out as black despite both parents being white (the game added both skin color genes and the original was always overwritten, but only with this couple)
Kaedys Oct 30 @ 1:29pm 
I think the issue is, that'd work for one generation only, really. If the mother has dominant, for example, and has a son, now that male pawn has dominant and it won't be mother's-genes-win when they have children. The only real way you could do it is with separate genotypes that are strictly gendered, plus binary inheritance, but that still wouldn't really be mother's-genes-win, because sons would echo the father instead. You can make a given genotype always dominant, regardless of which parent has that genotype, but you can't really make it so that the mother's genes always win in any given matchup.
RedMattis  [author] Oct 30 @ 11:46am 
@狼雨歌
"Dominant Genes" on the mother, or "Recessive Genes" on the father would work.

Do note that other mods that add modded types of births (such as 'parasitic implantation' and probably some 'humanlike egg') may have their own logic for picking genes.
狼雨歌 Oct 30 @ 3:41am 
Sorry to bother you . I've tried using genes or changing settings , but I can't get the effect I want . What should I do ? Or am I misunderstanding something ?
What I want is for the child to always inherit the mother's genes and never the father's .
MikeisaGoob Oct 11 @ 3:46pm 
Thank god for this mod vanilla gene inheritance is so retarded it gives me brain damage
RedMattis  [author] Oct 7 @ 3:29am 
@Wrath
I have never heard something like that.

It is certainly possible that there is some mod conflict, but please don't make such sweeping generalizations without at least providing a log.

I usually use a ton of genes myself, and I know many others who do as well without issues.

@ShadowX116
Dominant/Recessive are processed before anything else. That means if one part has a dominant gene and the other does not, then the dominant ones genes will always all be applied

Binary only does something if both have it (and lack/have the same level of dominant/recessive). Otherwise it is ignored.

@Lovis
"Vanilla Races Expanded - Highmates" has Dominant/Recessive genes as well if that is what you're looking for.

@Torkkar
It mostly does, yeah. It also adds an in-between stage where a child can be labaled a Hybrid <XenoType> (E.g Hybrid Impid) if they are quite far from either parent.