How to adjust difficulty scaling?

I’ve been making a small mod to adjust the resource amounts in the HW1RM campaign. However I can’t figure out how to adjust the enemy scaling. Does it have something to do with referencefleet.txt in the level folders?

See my post over in your other thread.

I understand that it adjusts according to what ships you have, I just want to know where I can tweak some numbers to change how it scales. With the adjusted resources, the player’s fleet will be a bit smaller, but I don’t want the enemies to be scaled down.