Atavism Libraries
Something i've been working on for the Muriden Mod; but as i tried to make it more configurable so i didn't need to keep editing the C# i realized i should just break it off into its own mod.
Something i've been working on for the Muriden Mod; but as i tried to make it more configurable so i didn't need to keep editing the C# i realized i should just break it off into its own mod.
What does it do? its a framework so really nothing baseline. There's an example XML that you can play around with.
You can define a source Xenotype, a gene, and a destination xenotype, as well as the % chance of that being the outcome. (If you specify both a xenotype AND a gene then its treated as a requirement to meet both. But now you can just have it search for a specific gene or xenotype (without a specific gene) and it'll work.
In the example we use Pigskin + the Pig Nose gene to have a chance of giving birth to a baseliner; rolling the dice to see if this occurs.
A second example exists for Sanguinophage with the Hemogenic gene turning into a yttakin passing along all their xenogenes in the process.
In a real scenario you probably should use a more unique gene.
We have an option of "inherent genes" between "none", "excess", "endo", "xeno" and "all"
none - Only cosmetic genes pass (skin/hair)
excess - Any endogenes the mother has that aren't normal for her xenotype are passed on.
endo - We smash all of the mother's endogenes into the new xenotpe.
xeno - We will pass along the mother's xenogenes but use thier new xenotype's endogenes without taking any from the mother (except skin/hair)
all - We pass Endogenes, Xenogenes from the mother AND we're getting the new xenotype's genes.
You can also specify multiple defs for each xenotype; it'll just keep checking against the mother for any hit it gets on that list and then roll the dice. If it succeeds it stops and makes that the result. If all fail then we just default back to the base xenotype of the mother like normal.
Its worth noting their xenotype will always be set to the target xenotype menaing they'll never come out a "hybrid ___" child.
I added all these options as this sorta highjacks the childbirth process and may override other inheritence mods in most cases; so i wanted this to be as configurable as possible. This only affects xenotypes+gene combinations you define. Everything else will use the normal process.
The bese use case for this is a all-women xenotype; because logically if they need outsiders to continue the species they'd be hybrid out of existence in a few generations (you can do this by just making the source and target xenotype the same.)
Alternatively you wanna have gambling where every offspring has a chance to evolve or devolve into something else.
Github link shares with muriden mod as its primarily part of it right now, i didn't want to make this a sudden requirement for that mod, so its more standalone with it being an optional prereq
Github Source