Negative Trait Formula Fix

If you liked this item, please rate it up on Steam Workshop page.

Authors: Princess Stabbity, Porev, TheGrandN

Last revision: 7 Dec, 2023 at 14:04 UTC (4)

File size: 302.08 KB

On Steam Workshop

Description:
What This Does

You may have noticed a strange behavior when your long-lived leaders (especially those who are recruited already being 100+ years old) start disproportionally getting a lot of negative traits in a short span of time. NTFF tweaks the negative trait chance calculation formula to prevent such issues.

Technical Info

1. Stellaris uses different negative trait formulae for immortal and non-immortal leaders. Immortal leaders are not affected.
2. Base yearly chance to get a negative trait for non-immortal leaders is 5% and is affected by a multiplier. The chance caps at 25% and obviously can’t be less than 0%.
3. Stellaris uses this formula to calculate the multiplier (comment copied directly from Stellaris formula):

# Eligibility increases for every full 20 years of AGE, every LEVEL, and every PENDING Negative trait.
# Eligibility decreases for every CURRENT negative trait.

This means that for every 20 static years leaders get +1 increments in the formula. Vanilla formula is balanced for leaders with default lifespans of 80-100 years. Leaders that have longer lifespans and start of older age (for example the Dark Elves from Elves of Stellaris are at least 100-400 years old when recruited) are completely screwed by it: they start with 5 to 20 added to multiplier formula.

For example, the yearly chance to receive a negative trait for a level 1 non-immortal leader that is hired already being 300 years:

5% * (300 / 20 – 1 – 8 – 0) = 5% * 6 = 30% but caps at 25%.

Compared to a fresh 30 year old leader:

5% * (30 / 20 – 1 – 8 – 0) = 5% * -8 = 0% (minimum).

This mod changes the divisor in the formula from static 20 to leader_max_age / 4. The more long-lived your species is, the larger the interval between age-related increments in the multiplier. For leaders with default max age of 80 the mechanics is unchanged.

Compatibility

Incompatible with anything that edits common/script_values/01_script_values_paragon.txt file.

Save game compatible.

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.