It's a bit complicated. The source code is "planet_decks.lua". But, the basic logic is that there are a number of "card decks" which most stars draw from to initialize their planets. First you draw from a deck that gives a number of planets, then another deck that gives "rarity" of each planet (either 'common' or 'rare'), and then the common and rare decks each contain some ratio of the different planet types / sizes. So, for example, a yellow star might draw 4 planets, 1 rare and 3 commons; the common draws might be 2 Medium Arids, and an Iceball, while the rare could be a Medium Garden. There's also a seperate deck for 'epic' planets, which includes Hive, Coral, and Paradise worlds, but, epic systems are sprinkled into the star setup in a different way.Chasm wrote:Out of interest, what are the planetary ratios you are running? I would assume they are different dependent on habitability choice from the starter screen, but I admit to curiosity on the ratios and modifiers.
Um... One interesting consequence of me responding to this question is that I've just realized that the 'common' deck used with the 'abundant habitable planets' setting contained way too many water worlds. It should be reset to something more reasonable as of r18578.