Anyway I remember several years ago one version that listed the number of boys and girls birthed by your girls. Would it be possible to add this to yours?
A little update for you:
<Children Total_Births="0" Beasts="0" All_Girls="0" All_Boys="0" Customer_Girls="0" Customer_Boys="0"
Your_Girls="0" Your_Boys="0" Miscarriages="0" Abortions="0" />
What other things should I add to this list?Loading and saving works
but not everything adds to them yet. everything should now add to things here.
There is also no output for them yet. I am moving the existing "Has Daughter"/"Has Son" lines from the first detail list to the second so I can add the new stuff to it.
The "Is pregnant" line will still be on the first list but it will be copied to the top of the new part as well.
Total_Births and the Girls/Boys/Beast counts only count live births.
Miscarriages and Abortions count failed pregnancies of both human and beast and are not included in any of the other counts.
Miscarriages and Abortions are added to where appropriate in the code. (there may be a few places I missed)
Items that end pregnancies add to Abortions.
Now that I am finished with that for now, I am seeing if I can add Multiple births.
The "MultiBirthChance" was added into config.xml a few releases ago and now I have actually used it.
I added a maximum of 50% for "MultiBirthChance" in the code so it can't be extremely over abused.
When a child is created in the pregnancy code, a multiple birth check is made and if it succeeds, the m_MultiBirth is increased.
The multichance is then divided by m_MultiBirth number and checked again.
This continues until it fails or m_MultiBirth reaches 5.
So (if my math is right) the maximum chance for 2 is 50%, then 3 is 25% of that (12.5%), then 4 is 8.33% (1.04%), finally 5 is 2.083% (0.02%)
m_MultiBirth gets saved and loaded now so even if I don't finish it for this next version, when it does get added, if a girl is pregnant, she may give birth to multiples. (for now it does nothing)
Pregnancies started in versions before .06.01.07 will always be single births unless you edit the save game after saving from the new version. (or manually add the tag)
<Child Age="0" IsPlayers="1" Sex="1" Unborn="1" MultiBirth="1">
I am going to bed now and I hope to be able to finish it for release this weekend.
On a side note:
I added girl's strength to GetCombatDamage() so base damage is min(1,strength/10) instead of flat 5