Base production calculations

Information, How-to's, and discussion about mod'ing Master of Orion II.
User avatar
Lord Brazen
Site Admin
Posts:162
Joined:Mon Jul 18, 2005 10:16 pm
Location:Toronto, Canada
Contact:
Base production calculations

Postby Lord Brazen » Thu Aug 11, 2005 10:47 pm

For those that have asked for production formulas, base production (what you see when you right click a planet) calculations are extremely simple.

First define some of the variables:

Code: Select all

Race_prod_bonus = 0 when no production bonus race pick = -1 when -1 production bonus race pick = +1 when +1 production bonus race pick = +2 when +2 production bonus race pick Microlite_bonus = 0 when you do not have Microlite Construction = 1 when you have Microlite Construction
Now lookup the planet production based on the planet mineral grade:

Code: Select all

Table at offset 0x162B09 in Orion2.exe 01 02 03 05 08 Planet_value = nth value from the table above where n is the planet mineral grade.
Calculate the base_production (minimum of 1):

Code: Select all

Base_production = Planet_value + Microlite_bonus + Race_prod_bonus If Base_production = 0 then Base_production = 1

Return to “Game Modifications”

Who is online

Users browsing this forum: No registered users and 40 guests