Two tables are used in the calculations.
Planet size multiplier table at offset 0x1F3E5A in orion2.exe. Each value represents a multiplier based on planet size.
Code: Select all
05 0A 0F 14 19
Code: Select all
19 19 19 19 19 19 28 3C 50 64
Code: Select all
tol_flag = 0 when not tolerant race
= 25 when tolerant race
Code: Select all
env_mult = tol_flag + value_from_env_able
NOTE: env_mult is limited to a maximum of 100.
size_mult = value_from_size_table
raw_max = (env_mult * size_mult + 50) / 100
Code: Select all
subt_bonus = ( planet_size +1 ) * 2
NOTE: subt_bonus is 0 if race is not subterranean.
city_bonus = 5 if Advanced City Planing tech is known.
= 0 if not.
max_pop = raw_max + subt_bonus + city_bonus