-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animal reproduction fixes #37283
Animal reproduction fixes #37283
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't just post links for your data citations. Pull out the bit of relevant data and then link to the research.
You can test this by spawning some animals in an enclosure, teleporting far enough away that they're outside the reality bubble (ie, 5+ overmap tiles), advancing time the appropriate amount, and teleporting back. When the animals are reloaded into the reality bubble, they should age or spawn, as appropriate.
Assuming the data matches and you test this, this looks good, but please bring out the data instead of making me hunt for it in your links. Thanks.
I did the formatting you requested. |
An other thing to consider is if |
Do these numbers scale with season length? Or are they fixed, no matter if your season is 7 days or 91 days? |
No idea. I always play with 91 days seasons and I haven't found any documentation on it. |
Monster upgrades are fixed, irrelevant of season time. Thanks for pulling the information out of your sources, but if you've made changes that are not passing the tests, you need to figure out the issue before the PR can be accepted. |
Ok, I will do some more tests. |
After making some more tests with several different animals, it turns out none of the animals in mammal.json actually mature according to the days given by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, thanks for looking into this. separately there is apparently a bug in monster::try_upgrade() but I can't find it by inspection.
Thanks for the review. I'll open an issue so it gets documented. |
Summary
SUMMARY: Bugfixes "Fixed the reproduction rates of several animals"
Purpose of change
Fixing animal reproduction rates based on data.
Describe the solution
Black bear
Gestation period is 220 days.
Black bear females typically produce cubs every two years once they become mature. ... Mother and cubs remain together for 16-17 months until May or June of the following year. Then, the family members separate, the mother mates again, and the 2-year cycle repeats.
link
Deer
Gestation period is 201 days.
The fawn will stay with its mother for approximately one year, suckling for three to four months. The female will break the maternal bond by driving the juvenile off just prior to giving birth to the next year's fawn.
link
Pig
Pigs breed at all times of the year, regardless of the season. ... Sows are mated - pregnancy period is 116 days. ... Sows farrow and nurse their piglets for 3-4 weeks. ... Gilts are usually introduced to boars around 25–28 weeks old. The boar will often have daily exposure to young gilt’s, ... with the gilts typically reaching puberty 10–30 days after commencing boar contact.
link
Sheep
Age at puberty (ewe): 6 - 9 months. ... Sheep are seasonal breeders. The natural sexual season is positioned so that lambs will be born in the spring when the weather is warmer and grass is available.
link
Testing
I'm out of ideas on how to test this effectively.