Difference between revisions of "Game Formulas"

From Earth Empires Wiki
Jump to: navigation, search
(Undo revision 4690 by TanX (Talk))
(→‎Basic Formulae)
Line 10: Line 10:
 
*[[Per capita income growth]]
 
*[[Per capita income growth]]
  
−
 
+
<P>'''Please note, a lot of these are old formulas, and need to be updated. This list does not include every formula either.'''</p>
−
 
+
<P>Earth is a game of numbers and formulas. So here they are:</p>
−
<p>'''Please note, a lot of these are old formulas, and need to be updated. This list does not include every formula either.'''</p>
+
<BR>
−
<p>Earth is a game of numbers and formulas. So here they are:</p>
 
−
<br />
 
 
<center>
 
<center>
 
<table class="wikitable">
 
<table class="wikitable">
  
−
<tr>
+
<tr><th>Calculating</th><th>Formula</th></tr>
−
<th>Calculating</th>
 
−
 
 
−
<th>Formula</th>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Per Capita Income (PCI)</td>
 
−
 
 
−
<td>22.5 * (1 - Taxrate) * (1 + (Networth/Land)/90000) * (1 + 2 * Ent/Land)
 
−
* BusTech * GvtPCIBonus</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Revenue</td>
 
−
 
 
−
<td>PCI * Pop * Taxrate</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Construction Cost</td>
 
−
 
 
−
<td>3 * Land + 1500</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Destruction Cost</td>
 
−
 
 
−
<td>0.2 * (3 * Land + 1500)</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Oil Consumption</td>
 
−
 
 
−
<td>Oil is consumed at a rate of 1 Barrel for 25 Military Units (only applies to Troops, Jets and Tanks when attacking).
 
−
</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Buildings Per Turn</td>
 
−
 
 
−
<td>
 
−
(CS/4 + 5) * GvtContrBonus
 
−
</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Military Upkeep</td>
 
−
 
 
−
<td>
 
−
Troops Upkeep: Troops * .11 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<br />
 
−
Jets Upkeep: Jets * .14 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<br />
 
−
Turrets Upkeep: Turrets * .18 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<br />
 
−
Tanks Upkeep: Tanks * .57 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<br />
 
−
Spies Upkeep: Spies * 1 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant<br /><br />
 
−
 
 
−
Constant = If MilBases/Land &lt; .295 Constant = 1 - 1.3*(MilBases/Land) Else (that is, if the number of MilBases built is more than 29.5% of your land) Constant = 0.61</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Alliance Costs</td>
 
−
 
 
−
<td>
 
−
Defensive Allies: DefAllies * Networth * .002 (0.2% of NW each)<br />
 
−
Offensive Allies: OffAllies * Networth * .002 (0.2% of NW each)<br />
 
−
Intelligence Allies: IntelAllies * Networth * .0015 (0.15% of NW each)<br />
 
−
Research Allies: ResAllies * Networth * .0015 (0.15% of NW each)<br />
 
−
Trade Pacts: TradePacts * Networth * .0005 (0.05% of NW each)<br />
 
−
GDI Costs (non-Theocracy): Land * 4<br />
 
−
GDI Costs (Theocracy): Land * 8<br />
 
−
Declare War Costs: Land * 10<br />
 
−
 
 
−
</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>GDI Penalty</td>
 
−
 
 
−
<td>Because of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Land Upkeep</td>
 
−
 
 
−
<td>
 
−
If land is less than 1500A:<br />
 
−
Land Upkeep = Land^2 * 7/1500 + Land*3<br /><br />
 
−
 
 
−
If land is more than 1500A:<br />
 
−
Land Upkeep = Land * 10<br /><br />
 
−
 
 
−
Note that when Land = 1500, both formulas give the same upkeep.
 
−
</td>
 
−
</tr>
 
−
 
 
−
<tr>
 
−
<td>Total Expense</td>
 
−
 
 
−
<td>
 
−
Military Upkeep Costs + Alliance Upkeep Costs + Land Upkeep Costs
 
−
</td>
 
−
</tr>
 
−
 
 
−
 
 
−
<tr>
 
−
<td>Networth</td>
 
−
 
 
−
<td>
 
−
Troops*0.5+Jets*0.6+Turrets*0.6+Tanks*2+Spies*1+Tech*2+Land*45+Buildings*35+Money/20000+ Food/1000+Missles*2500+Pop/6+Oil/100
 
−
</td>
 
−
</tr>
 
−
<tr>
 
  
−
<td>Food (Bushels)</td>
+
<tr><td>Per Capita Income (PCI)</td><td>22.5 * (1 - Taxrate) * (1 + ((Networth/Land)/90000)) * (1 + (2 * (Ent/Land))) * BusTech * GvtPCIBonus</td></tr>
 +
<tr><td>Revenue</td><td>PCI * Pop * Taxrate</td></tr>
 +
<tr><td>Construction Cost</td><td>3 * Land + 1500</td></tr>
 +
<tr><td>Destruction Cost</td><td>0.2 * (3 * Land + 1500)</td></tr>
 +
<tr><td>Oil Consumption</td><td>Oil is consumed at a rate of 1 Barrel for 25 Military Units (only applies to Troops, Jets and Tanks when attacking)</td></tr>
 +
<tr><td>Buildings Per Turn</td><td>(CS/4 + 5) * GvtContrBonus</td></tr>
 +
<tr><td>Military Upkeep</td><td>
 +
Troops Upkeep: Troops * .11 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
 +
<BR>Jets Upkeep: Jets * .14 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
 +
<BR>Turrets Upkeep: Turrets * .18 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
 +
<BR>Tanks Upkeep: Tanks * .57 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
 +
<BR>Spies Upkeep: Spies * 1 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
 +
<BR>Constant = If MilBases/Land &lt; .295 Constant = 1 - 1. 3 *(MilBases/Land) Else (that is, if the number of MilBases built is more than 29.5% of your land) Constant = 0.61</td></tr>
 +
<tr><td>
 +
Alliance Costs</td><td>Defensive Allies: DefAllies * Networth * 0.002 (0.2% of NW each)
 +
<BR>Offensive Allies: OffAllies * Networth * 0.002 (0.2% of NW each)
 +
<BR>Intelligence Allies: IntelAllies * Networth * 0.0015 (0.15% of NW each)
 +
<BR>Research Allies: ResAllies * Networth * 0.0015 (0.15% of NW each)
 +
<BR>Trade Pacts: TradePacts * Networth * 0.0005 (0.05% of NW each)
 +
<BR>GDI Costs (Theocracy): Land * 8
 +
<BR>GDI Costs (All Others): Land * 4
 +
<BR>Declare War Costs: Land * 10</td></tr>
 +
<tr><td>GDI Penalty</td><td>Because of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.</td></tr>
 +
<tr><td>Land Upkeep</td>
 
<td>
 
<td>
−
*Production<br />round((farms*5.3 + empty_acres*0.4)*govt_food_bonus*agri_tech)<br />
+
If land &lt; 1500A Then Land Upkeep = (Land ^ 2) * (7/1500) + (Land * 3) Else Land Upkeep = Land * 10
−
govt_food_bonus = 1.15 for the fascism government and 1.00 for all other governments<br />
+
<BR>Note that when Land = 1500, both formulas give the same upkeep.</td></tr>
 +
<tr><td>Total Expense</td><td>Military Upkeep Costs + Alliance Upkeep Costs + Land Upkeep Costs</td></tr>
 +
<tr><td>Networth</td><td>
 +
(Troops * 0.5) + (Jets * 0.6) + (Turrets * 0.6) + (Tanks * 2) + (Spies * 1) + (Tech * 2) + (Land * 45) + (Buildings * 35) + (Money / 20000) +  (Food/1000) + (Missles * 2500) + (Pop/6) + (Oil/100)</td></tr>
 +
<tr><td>Food (Bushels)</td><td>Production: round(((Farms * 5.3) + (Unused Acres*0.4))*GovFoodBonus*AgriTech) where <B>GovFoodBonus</B> is 1.15 for Fascism and 1.00 for all others
 
<hr style='width:75%'>
 
<hr style='width:75%'>
 
*Consumption  *Formula changed March 2010<br />
 
*Consumption  *Formula changed March 2010<br />

Revision as of 23:54, 3 March 2011

It needs to be determined what formulas are no longer accurate


This page contains a listing of various formulae for Earth Empires.

Basic Formulae

Please note, a lot of these are old formulas, and need to be updated. This list does not include every formula either.

Earth is a game of numbers and formulas. So here they are:


CalculatingFormula
Per Capita Income (PCI)22.5 * (1 - Taxrate) * (1 + ((Networth/Land)/90000)) * (1 + (2 * (Ent/Land))) * BusTech * GvtPCIBonus
RevenuePCI * Pop * Taxrate
Construction Cost3 * Land + 1500
Destruction Cost0.2 * (3 * Land + 1500)
Oil ConsumptionOil is consumed at a rate of 1 Barrel for 25 Military Units (only applies to Troops, Jets and Tanks when attacking)
Buildings Per Turn(CS/4 + 5) * GvtContrBonus
Military Upkeep

Troops Upkeep: Troops * .11 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
Jets Upkeep: Jets * .14 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
Turrets Upkeep: Turrets * .18 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
Tanks Upkeep: Tanks * .57 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant
Spies Upkeep: Spies * 1 * MilTech% * (1 + Networth/40000000) * GvtBonus * Constant


Constant = If MilBases/Land < .295 Constant = 1 - 1. 3 *(MilBases/Land) Else (that is, if the number of MilBases built is more than 29.5% of your land) Constant = 0.61
Alliance CostsDefensive Allies: DefAllies * Networth * 0.002 (0.2% of NW each)


Offensive Allies: OffAllies * Networth * 0.002 (0.2% of NW each)
Intelligence Allies: IntelAllies * Networth * 0.0015 (0.15% of NW each)
Research Allies: ResAllies * Networth * 0.0015 (0.15% of NW each)
Trade Pacts: TradePacts * Networth * 0.0005 (0.05% of NW each)
GDI Costs (Theocracy): Land * 8
GDI Costs (All Others): Land * 4


Declare War Costs: Land * 10
GDI PenaltyBecause of the defensive nature of the alliance, one side effect of GDI is 10% lower gains from your attacks.
Land Upkeep

If land < 1500A Then Land Upkeep = (Land ^ 2) * (7/1500) + (Land * 3) Else Land Upkeep = Land * 10


Note that when Land = 1500, both formulas give the same upkeep.
Total ExpenseMilitary Upkeep Costs + Alliance Upkeep Costs + Land Upkeep Costs
Networth (Troops * 0.5) + (Jets * 0.6) + (Turrets * 0.6) + (Tanks * 2) + (Spies * 1) + (Tech * 2) + (Land * 45) + (Buildings * 35) + (Money / 20000) + (Food/1000) + (Missles * 2500) + (Pop/6) + (Oil/100)
Food (Bushels)Production: round(((Farms * 5.3) + (Unused Acres*0.4))*GovFoodBonus*AgriTech) where GovFoodBonus is 1.15 for Fascism and 1.00 for all others
  • Consumption *Formula changed March 2010
    • Troops, jets, and turrets all consume 0.001 bushels each
    • Tanks consume 0.003 bushels
    • Spies consume 0.005
    • Civilians consume 0.03

March 16th, this formula is in effect in the express, team, and primary servers


Decay = Bushels_on_hand*0.001

Most formulae use standard rounding, but some, like networth, use truncation.

Note:  A good player does not have to know all the formulas.