Just finished scribbling the last lines of code in my notebook. Hellz ya!
Alright so the following is how it works:
Start of world - all mobs spawn with preconfigured genes (within a random choice)
Afterwards Mother Nature takes over.
If sex results in sperm and ovaries coming into contact, a check is made to determine if races are compatiable and if it's true then there is a chance for pregnancy (determined by race pregnant likelihood). Afterwards then the first thing that is selected is the race of the offspring. Depending on the parents (and their race genes) this will either result in a full breed, (double dom alleles) Dom breed (one Dom allele, one Rec allele) or a half half breed. (two Rec alleles)
Then parents each donate their genes to the offspring. In some cases the parents won't be able to pass their genes along for some traits, and when that happens the gene pool for the race is consulted and used to fill in the blanks.
I did cut a few features that I had initially planned on but decided to leave for later. Those were inheriting a transgender/nongender gene and gene mutations. Right now transgender/nongender is pre-determined by the race. And the mutations were for when certain traits become extinct, which shouldn't happen because the gene pool should replenish the traits into the population when parents are missing genes. (kind of a hack, but it gets the job done)
So this worked out better than I thought. I still feel like there are a few things I need to tweak and some bug testing that needs to be done. Overall, I'm very satisfied though!
Going to work on polishing up the fetish menu, and then maybe AI behavior? We shall see.
Alright so the following is how it works:
Start of world - all mobs spawn with preconfigured genes (within a random choice)
Afterwards Mother Nature takes over.
If sex results in sperm and ovaries coming into contact, a check is made to determine if races are compatiable and if it's true then there is a chance for pregnancy (determined by race pregnant likelihood). Afterwards then the first thing that is selected is the race of the offspring. Depending on the parents (and their race genes) this will either result in a full breed, (double dom alleles) Dom breed (one Dom allele, one Rec allele) or a half half breed. (two Rec alleles)
Then parents each donate their genes to the offspring. In some cases the parents won't be able to pass their genes along for some traits, and when that happens the gene pool for the race is consulted and used to fill in the blanks.
I did cut a few features that I had initially planned on but decided to leave for later. Those were inheriting a transgender/nongender gene and gene mutations. Right now transgender/nongender is pre-determined by the race. And the mutations were for when certain traits become extinct, which shouldn't happen because the gene pool should replenish the traits into the population when parents are missing genes. (kind of a hack, but it gets the job done)
So this worked out better than I thought. I still feel like there are a few things I need to tweak and some bug testing that needs to be done. Overall, I'm very satisfied though!
Going to work on polishing up the fetish menu, and then maybe AI behavior? We shall see.