How does determining the number of children/beasts a girl is pregnant with work?
In other words , three girls get pregnant, how does the game determine which one is pregnant with a single pregnancy, twins, or more?
And is there a cap on the number of children/beasts a girl can be pregnant with at one time?
In config.xml the setting <Pregnancy PlayerChance, CustomerChance, MonsterChance> are the base percent for pregnancy for each type.
<Pregnancy GoodSexFactor> is a multiplier if the girl and her partner enjoyed the sex more than average.
Broodmother adds 60% to pregnancy chance and Fertile adds 30%.
Sterile prevents pregnancy except in rare magical events.
When a girl gets pregnant, the first child is created by the code.
In config.xml the setting <Pregnancy MultiBirthChance="#"> is the base percent chance of the first twin.
Broodmother trait allows for 2 baby tries before the main check is made.
In the main check, the MultiBirthChance is rolled once at full strength and is divided in half each time until it either fails or the number of babies reaches 5.
For beasts there is not a limit but generally 5 is about the highest without special settings.
For humanoid children (Pregnant and Pregnant by Player) the max is 5.