Planet maximum population calculations.
Posted: Thu Oct 13, 2005 4:21 pm
Here how the max pop is calculated (without a mixed pop).
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.
Planet environment multiplier table at offset 0x162B3F in orion2.exe. Each value represents a multiplier based on planet environment. Aquatic races use terran value for tundra/swamp and Gaia value for Terran.
Tolerant races receive a bonus.
Next, we lookup the values in the tables and calculate the raw max pop.
Next, the max population is adjusted for Subterranean races and advanced city planning.
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