First define some of the variables:
Code: Select all
Planet_food_value = food value from the individual planet in the planets table
Race_food_bonus = 0 when no farming race pick
= -1 when -1/2 food race pick
= 2 when +1 food race pick
= 4 when +2 food race pick
Code: Select all
Barren_flag = 0 when Planet_food_value > 0
= 1 when Planet_food_value = 0
Biomorphic_flag = 0 when you do not have Biomorphic Fungi
= 1 when you do have Biomorphic Fungi
Biomorphic_bonus = Biomorphic_flag * Barren_flag * 2
Code: Select all
Normal_farming_value = (Planet_food_value * 2) + Biomorphic_bonus
Code: Select all
Farmable_flag = 0 when Normal_farming_value is 0
= 1 when Normal_farming_value is > 0
Food_after_bonus = Normal_farming_value + (Race_food_bonus * Farmable_flag)
Code: Select all
Table at offset 0x1F3E70 in orion2.exe file.
00 00 00 01 01 02 02 01 02 03
Terran_value = 9th value from the table above.
Gaia_value = 10th value from the table above.
Planet_value = nth value from the table above where n is the planet environment class.
Code: Select all
Aquatic_bonus = (Terran_value - Planet_value)*2
Code: Select all
Aquatic_bonus = (Gaia_value - Planet_value)*2
Code: Select all
Aquatic_bonus = 0
Code: Select all
Base_food = (Food_after_bonus + Aquatic_bonus)/2
Note: Base_food is always rounded down.