This should handle it:
* Previously, there was a AIDifficulty percent chance, per AI player, of a mark I or II fortress being added on each planet in the galaxy (for all difficulties 4 and up).
** Now there is a flat ( AIDifficulty / 2 ) * ( totalPlanets < 80 ? totalPlanets / 80 : 1.0 ) fortresses per AI player on the map, rounded up.
*** For difficulty 7.3 on a 40 planet map, that would be ( 7.3 / 2 ) * ( 40 / 80 ) = 3.65 * .5 = 1.825 = 2 fortresses per AI player.
*** For difficulty 8 on an 80+ planet map, that would be ( 8 / 2 ) * 1.0 = 4 fortresses per AI player.
** Fortress Barons, in addition to the other fortresses (superfortresses and mark III fortresses) that they already get, now get 8x the normal number of mark I and II fortresses in addition (not to exceed the total number of planets controlled by the fortress baron player).
** Whether or not the seeded fortress is mark I or II depends on the mark level of the planet. Mark I and II planets get a mark I fortress, everything higher gets a mark II fortress.