[MOD REQUEST] Remove Random Stats Increases?

Started by The13thRonin, March 03, 2018, 09:42:36 AM

Previous topic - Next topic

The13thRonin

Is there a way to remove all random colonist stat increases when rolling random colonists? I only want the stats to come from the traits and backgrounds. I want no random increases from like age or anything (older pawns seem to get more stat points than younger pawns).

I believe the pawngenerator is almost certainly the file that needs to be changed in the assemblies but I do not have the skill to do this.

I think it is:

{
            float num;
            if (sk.usuallyDefinedInBackstories)
            {
                num = (float)Rand.RangeInclusive(0, 4);
            }
            else
            {
                num = Rand.ByCurve(PawnGenerator.LevelRandomCurve, 100);
            }

I'm pretty sure that

                num = (float)Rand.RangeInclusive(0, 4);

Needs to changed to:

                num = (float)Rand.RangeInclusive(0, 0);

Or otherwise disabled because using Prepare Carefully I've learned that the maximum amount of 'extra' hidden points each skill can get is 4 (I think). I want the maximum extra points to always be zero. I could be wrong though and it could be other variables in that file.

I have no idea how to create a DLL with these changes and have Rimworld recognise this. Could anyone do this for me please?


The13thRonin

#2
Quote from: Canute on March 03, 2018, 12:46:19 PM
Did you ever tryed EdB Prepare Carefully ?
https://ludeon.com/forums/index.php?topic=6261.0

Yes but this is not what I want.

It doesn't remove the random stat bumps. And even if it did it wouldn't for colonists who joined after the starting 3.

The13thRonin