-
Notifications
You must be signed in to change notification settings - Fork 49
Animal Gene Inheritance
When enabled, it is possible that pawns born from bestiality gain genes based on their animal-ancestors.
Pawns that have a cat as one of their parents might be born with cat-ears, fur or higher sleep need.
Determining Animal Genes
The involved animal gets looked up in a XML-dictionary, that contains possible genes for it.
These dictionaries can cover specific animals, or RaceKindDefs such as Canine.
Most animals added by mods will not have specific behaviour, but will (likely) fall into a RaceKindDef.
If the lookup fails, there is simply no gene inherited.
It is possible that the RaceKindDef or animal specific Def
Animal Mother
- Upon Birth, first the RJW logic determines if its a human or an animal
- Then, if its a human, the genes are looked up and added.
- Any mod that changes gene inheritance should not be applied here.
- As genes are determined on birth, they cannot be pre-viewed in pregnancy
Animal Father
- When the Pregnancy is started, the
normalgene inheritance is applied for both parents genes. - This means, any mod that changes your gene inheritance, will apply as normal.
- Animal genes should be visible in the normal genetic preview of the pregnancy
- This feature patches both RJW Pregnancies (for pawns born from animals) and Biotech Pregnancies (for pawns with human mother)
- The animal gene lookup is done "from specific to generic", so
warg-genes are looked up overcanine-genes.
- {Settings} Turn off or on completely (default on)
- {Settings} if Animal-based genes should be Xenogenes (default off, animal genes are endogenes)
- {Settings}
Global Gene Inheritance Chance(default1), a multiplier how likely any gene will be inherited. Lower than 1 means that less animal genes will be inherited. - {XML} what genes which animal can give
- {XML} How likely a chance is for a given animal (e.g. cat ears are common, but a tail is rarer).
The Animal Gene Inheritance has its own sub-settings page, it is not in the normal RJW-Genes settings.
I got a lot of people being disappointed that every animal gives the same genes, with just a chance of them being added / applied.
What (a lot of) people want is to breed the best genes from animals, keep the good ones and then make super strong baby colonists.
This is a super cool idea, but it gives me a large headache. My idea for this would be to have a list of genes stored for every animal, individually, and that would be a horrible thing for your memory usage (and save-file size). So for now I don't plan on making this. There might be a way to have this performant with hash-based, but someone really needs to convince me with money to go into this direction.
There was a PR#6 that started adding Alpha-Animal specific genes, which would be happy to be revived 😇
- the Vanilla Genetics Expanded (VGE) Hybridization are on a different page
- Vanilla RaceKind Defs
The idea, initial code and a lot of support was done by Shabakur.
More touches were done later by Jaaldabaoth when adding VGE Hybrids.