Birth Quality Lifespan Fix
Fixes unfair birth quality penalties for modded races with non-human lifespans.
With this mod, long-lived races (e.g., Miho, Milira, Dragonian) will now keep the +50% birth quality bonus for centuries, while short-lived races will start gaining bonuses much earlier to match their rapid maturity.
As shown in the graph, with this fix, the peak birth quality bonus (+50%) for long-lived races can last for centuries.
[img]https://i.imgur.com/nd8NBMv.png[/img]
[i]Note: Example races shown share the same adult maturity age as humans (18 years). Races maturing earlier will have earlier peak birth quality years.[/i]
The Issue
In Biotech DLC, the birth quality bonus from the mother's age uses a fixed curve designed for humans:
[img]https://i.imgur.com/Wl61BJK.png[/img]
[i]Source: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Frimworldwiki.com%2Fwiki%2FReproduction]Reproduction - RimWorld Wiki[/url][rimworldwiki.com][/i]
This creates an issue for non-human modded races with different lifespans. For example:
[list]
[*] A race with a [b]1000-year lifespan[/b] only hits the birth quality bonus peak at age [b]20-30[/b]; meaning any world pawn spawned past this age receives an unintended penalty, even if they're still biologically young relative to their life expectancy.
[*] A race with a [b]40-year lifespan[/b] has its peak at the same [b]20-30[/b] range, meaning they only get the full bonus during later age.
[/list]
The Solution
This mod dynamically scales the mother's age curve based on each race's:
[list]
[*] Adult maturity age (when they become adults)
[*] Life expectancy (total expected lifespan)
[/list]
The prime birth quality window is now proportionally adjusted so every race experiences the same relative bonus curve.
Detailed calculation logic can be found in the github README: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FSaltGin%2FBirthQualityLifespanFix%2Fblob%2Fmain%2FREADME.md]https://github.com/SaltGin/BirthQualityLifespanFix/blob/main/README.md[/url]
Compatibility
Automatically works with any modded race. Safe to add/remove mid-save.
[b]No known incompatible mods so far.[/b]
This mod uses the least invasive approach I could think of to handle this mechanic. Mods that adjust curve values or add quality bonuses should remain compatible. However, mods that [b]completely replace or heavily modify the birth quality calculation logic[/b] may conflict.
If you encounter any issues, please let me know in the comments/posts.
Source: [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FSaltGin%2FBirthQualityLifespanFix]https://github.com/SaltGin/BirthQualityLifespanFix[/url]
[img]https://i.imgur.com/vOWin74.gif[/img]