Core Game Mechanics and AI: Buildings

The Core Game Mechanics and AI mod makes significant changes to vanilla buildings and the vanilla building mechanics:
 * 1) It overhauls all vanilla buildings, making sure they are all viable and useful (see list below).
 * 2) It adds a sophisticated system of AI weights that greatly enhances the AI's decisions regarding building construction and planetary development. This system takes into account such factors as the tile resources, the available pop, special planetary buildings, special resources and adj. bonuses from other buildings.
 * 3) It also adds a special failsafe mechanism to capital buildings, which triggers extra production of a specific resource if the empire in question is lacking that resource - at the expanse of other resources. This system factors in the empire's authority.
 * 4) It reworks the vanilla pricing scheme to make it both better balanced and more interesting (see below).
 * 5) It changes the vanilla building mechanics by allowing for direct construction of higher tier buildings. What does this mean? Well, if a given planet has the correct level of capital building and the available resources, and the empire at hand has unlocked a higher tier building, it can directly build the higher tier of said building rather than start at tier 1 and upgrade upwards. For example, a world with capital 2 can build lab 2 buildings directly rather than start at basic science lab and upgrade upwards. This saves a great deal of time and clicks. It is balanced through prices, and you will have to pay the full price of what it would have costed to build basic science lab+lab 1 in order to direct build lab 2.

Standard Resource Buildings
Tier 0: 25 minerals, 0.5 upkeep. 150 days build time.

Tier 1: 50 minerals, 1 upkeep. 180 days build time.

Tier 2: 75 minerals, 1.5 upkeep. 210 days build time.

Tier 3: 100 minerals, 2 upkeep. 240 days build time.

Tier 4: 125 minerals, 2.5 upkeep. 270 days build time.

Tier 5: 150 minerals, 3 upkeep. 300 days build time.

Habitat: 200 minerals. 3 upkeep. 360 days build time.

Special Resource (betharian, pets etc.): 150 minerals, 50 energy, 3 upkeep, 270 days build time.

Note : Habitat buildings don't need to be upgraded, so their base construction costs are higher.

=== Planet Unique Building === Tier 1: 200 minerals, 50 energy, 3 pkeep, 270 days build time.

Tier 2: 225 minerals, 75 energy, 3.5 pkeep, 360 days build time.

Tier 2: 250 minerals, 100 energy, 4 pkeep, 540 days build time.

=== Empire Unique and Capital Buildings === Tier 1 Capital: 200 minerals, 200 energy. 600 days build time.

Tier 2 Capital: 300 minerals, 300 energy. 600 days build time.

Tier 3 Capital: 500 minerals, 500 energy, 100 influence. 800 days build time.

Empire Unique Buildings: 400 minerals, 400 energy, 50 influence. 1080 days build time.

== Changes to Buildings ==

Resource Buildings
Energy/Mineral/Food buildings: rebalanced according to t0 (basic) to t5.

Research buildings: have been rebalanced from t1 (basic) - t5 (Lab 4).

Habitat resource buildings: prices rebalanced. Astro-Mining Bay out increased to +6 minerals (was +4) to make it competative with solar power collectors.

Mineral Processing Plant I/II: rebalanced as planet unique building t1/t2 respectively.

Power Hub/Nexus: rebalanced as planet unique building t1/t2 respectively.

Mineral Silos: these buildings were replaced by new buildings called Hyperstorage Facilities :
 * Hyperstorage Facility I: +1500/+1500 mineral/energy storage cap. +1/+1/+1 mineral/energy/food adjacency bonus.
 * Hyperstorage Facility II: +1500/+1500 mineral/energy storage cap. +2/+2/+2 mineral/energy/food adjacency bonus.
 * Hyperstorage Facility II: +2500/+2500 mineral/energy storage cap. +2/+2/+2 mineral/energy/food adjacency bonus. -10% pop consumer goods cost on planet.

Note : The hyperstorage buildings get their own tech unlocks and are not tied to mineral processing like mineral silos are.

==== Capital and Ringworld Unique Resource Buildings ====

The capital unique tier 5 mineral/energy/food buildings were reworked to give +1 adjacency bonus of their respective resource
 * The capital unique tier 4 lab buildings were reworked to give +1 adjacency bonus of their respective research field
 * Ringworld/Machine Worlds get a special enhanced version of the tier 4 mineral/energy/food buildings. These buildings have a +1 higher yield of that respective resource as well as a +1 adjacency bonus.
 * Ringworld/Machine Worlds get a special enhanced version of the tier 3 research lab buildings. These buildings have a +1 output and +1 adjacency bonus in their respective research field.

Capital Buildings
Note : Organic Capital Buildings receive food output equal to 50% of its total energy production to all organic capital buildings. Machine empire/synthethic empire get minerals instead. This addition is meant to help prevent the A.I. starvation bug / machine empire weakness.

Planetary Administration/Administrative Array: Added society, engineering and physics research adjacency bonuses (1/1/1). Ethics attraction bonus reduced to +10% (was 15%).

Planetary Capital/Planetary Processor:  Added society, engineering and physics research adjacency bonuses (2/2/2).

Empire Capital-Complex/Primary Nexus: Unity bonus increased to 4 (was 3), energy bonus increased to 10 (was 8). Added +1 influence output. Added +250 influence storage cap bonus. Increased the government ethics attraction bonus to +20% (was 15%). Added society, engineering and physics research adjacency bonuses (3/3/3).

Habitat Administration: Energy output reduced to 4 (was 6), unity output reduced to 1 (was 2). Added minerals, energy, food, physics, society and engineering research adjacency bonuses +1/+1/+1/+1/+1/+1. Added +1000/+1000 energy/mineral cap bonuses. Reduced ethics attraction bonus to +15% (was 20%).

=== Empire Unique Buildings ===

Note : All Empire Unique Buildings rebalanced to empire unique stats (see above list)

Galactic Stock Exchange: Energy output increased to 20 (was 10). Added +5000 Energy cap bonus.

Ministry of Benevolence: unity output increased to 12 (was 6). Added +5% citizen happiness.

Research Institue: increased the research output from 5/5/5 to 8/8/8.

Psi Corps: unity output increased to 12 (was 10). Governing ethics attraction increaed to 15% (was 5%). Removed the unrest bonus.

Citadel of Faith: unity output increased to 20 (was 12)

Autocurating Vault: unity output increased to 20 (was 12)

Alpha Hub: unity output increased to 20 (was 12)

Hive Nexus: this is the empire unique unity building of Hive Minds, its identical to alpha hub/autocurating vault stat-wise.

Singularity Core: increased the research output from 5/5/5 to 8/8/8. Replaced the all technology +5% bonus with +20% physics research bonus.

Probability Engine: Energy output increased to 20 (was 10). Added +5000 Energy cap bonus.

=== Planet Unique Buildings ===

Note : All Planet Unique Buildings rebalanced to planet unique t1/t2 stats (see above list)

Cloning Vats: rebalanced as t2 planet unique building. Replaced the +4 society research output with +4 food output. This building becomes much more important with ExOverhaul: Army installed and active.

Planetary Shield: rebalanced as t2 planet unique building. Replaced the physics and engineering research output and replaced these with +2 unity. Added +5 pop happiness bonus. Increased the planetary fortification bonus from +100% to +400%.

Gene Clinic: rebalanced as t1 planet unique building. Society research output reduced to +1. Increased the pop growth bonus to 15% (was +10%).

Gene Hospital: rebalanced as t2 planet unique building. Reduced the society research output to +2. Increased the pop growth bonus to 30% (was +20%).

Military Academy: rebalanced as t2 planet unique building. Replaced the engineering and society output with +2 unity. Increased the army damage bonus to 25% (was 10%), added + 25% army heatlh and army morale bonuses. Increased the army build speed bonus to 50% (was 25%). Added +100% planet fortification bonus. Added +15% militarist ethics attraction. A.I. instructed to avoid building this if pacifist and prefer building this if militarist. This building also becomes much more important with ExOverhaul: Army installed and active. This building was restricted to non-hive/non-machine empires only.

Hive Warground: this is the hive-mind only version of the Military Academy. It has identical stats and icon, but a different name and description.

War Factory: this is a Machine Terminator exclusive building in vanilla, but in vanilla this is pretty much a crap deal since armies are not that important. I decided to make this into the machine empire/synthethic empire equivalent of the militarya academy. As such this building is unlocked for machine/synthethic empires with the tech Centralized Command (like military academy). I rebalanced this building as t2 planetary unique building. Increased the army damage bonus to 25% (was 10%), added + 25% army heatlh and army morale bonuses. Increased the army build speed bonus to 50% (was 25%). Added +100% planet fortification bonus. Added +15% militarist ethics attraction. A.I. instructed to avoid building this if pacifist and prefer building this if militarist. This building also becomes much more important with ExOverhaul: Army installed and active. Finally, to make sure it still has something good for Machine Terminators - this building has a triggered resource bonus only for machine terminators, which gives them +2 unity alongside the nice engineering reseach bonus.

Spare Parts Depot: rebalanced as t1 planet unique building. Removed the society research output. Added a -10% robot build cost bonus. Added a -5% consumer goods cost bonus.

Assembly Yard: rebalanced as t2 planet unique building. Removed the society research output. Added a -20% robot build cost bonus. Added a -10% consumer goods cost bonus.

 All Unity Buildings : rebalaced as t1/t2/t3 planet unique buildings. This is true for both the default unity building chain, the spiritualist building chain and the machine empire building chain. I also added special hive-mind unity buildings, which are missing in vanilla. These buildings have the same stat as the normal/machine empire buildings.

Tradition Unique Buildings
Note : All Tradition Unique Buildings rebalanced to planet unique t3 stats (see above list)

Paradise Dome: reduced food output to 3 (was 4), increased unity output to 3 (was 2). I also changed the food into a triggered effect, so if and when a player does synthethic ascension the food bonus is replaced by an (+3) energy bonus :).

Visitor Center: increased unity and energy output to 3/3 (was 2/2). This building cannot be built by xenophiles.

Plurality Forum: this building is a new xenophile only version of the visitor center. It unlocks through the same tradition. It gives 4 unity, 4 energy and 4 society research. And +65% xeno migration pull, +10% habitabilty and +20% xenophile ethics attraction.

Hive Synapse: energy output increased to +4 (was 2).

Symbol of Purity: unity output increased to +4 (was 3).

Control Center: energy output increased to +4 (was 2).

=== Civic Unique Buildings ===

Organic Sanctuary: gives +2% robot pop production bonus on planet. Added +1 food output.

Organic Paradise: upkeep increased to 2 (was 1). Gives +2% robot pop production bonus on planet. Added +1 food output.

Nutriant Facitlity: rebalanced as t2 resource building, but output was kept the same (t4 equal)

Neuro-Electro Amplifier: rebalanced as t3 planetary unique building.