Skip to content

Animal Gene Inheritance

vegapnk edited this page Aug 22, 2024 · 2 revisions

Animal Gene Inheritance

What?

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.

How ?

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 normal gene 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

Good to Know

  • 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 over canine-genes.

Configuration

  • {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(default 1), 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.

Often Requested

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.

For Modders

Example RaceGeneDef

There was a PR#6 that started adding Alpha-Animal specific genes, which would be happy to be revived 😇

Further Reading

Acknowledgements

The idea, initial code and a lot of support was done by Shabakur.

More touches were done later by Jaaldabaoth when adding VGE Hybrids.

Clone this wiki locally