-- Changelog
-- Author: HandyVac
-- DateCreated: 2/24/2015 12:51:06 PM
--------------------------------------------------------------
v. 18
------------------------
General pass over buildings and wonders, setting appropriate yield values. 

Manufactories now yield 2 Supremacy

Fixed bug that caused game to hang when "pick an affinity level" quest reward dialogue popped up.

v. 21
-----------------------------
Caching database lookups for faster performance 

v.22
----------------------------
Changing affinity filters in techweb to highlight affinity-yielding buildings and improvements.

v.23
-----------------------------
Tweaking wonder modifications so they work with the winter 2015 patch.

v.24
----------------------------
Adding affinity icons to city-screen buildings list and production list.

v.25
-----------------------------
Adding local affinity yield counters in the city screen.

v.26
------------------------------
Integrating Machiavelli's Policies Grant Perks snippet.

Changing Adaptive Sciences virtue - now gives +20% to all affinity yields in your capital city.


v.28
-------------------------------
Adding support for perks to change the affin yields of improvements and terrain features

Removing base affin yields from basic tile improvements - these are now unlocked by leaf techs instead.


v.31
------------------------------
generators now buildable on any resource (but does not count as improving resources, or connect strategics).

adding Library Server as a Supremacy alternative to Relic.

Affinity level thresholds increase at a more exponential curve then before. I.e. early levels will be earned more quickly and later ones more slowly.

v.32
---------------------------------
Changing building quest for Relic - one option removes it's Purity yield.

Adding building quest for Library Server - one option removes it's Supremacy yield

Changing building quest for Cytonursery - One choice replaces base Purity yield with Harmony and buffs city HP

Removing base affin yield from Vivarium
Changing building quest for Vivarium - Food choice grants Purity yield, Science choice grants Harmony yield

v.33
---------------------------------
added Hybrid Jungle improvement - a Harmony equivelant to the Terrascape, buildable only on forests

Forests are buildable by Workers

Changing Ecoscaping virtue to apply to Hybrid Jungle as well as Terrascape

Moving Terrascape to a leaf tech, so the AI is less likely to spam them everywhere

v.34
---------------------------------
added Arbor Mill building - boosts production from forests, is mutually exclusive with Mass Digester

v.35
---------------------------------
Integrated lilgamefreek's Modular Building Quests snippet - this will allow compatability with other mods adding building quests with ths snippet.

Quests for the following buildings now affect their affinity yields:
- Laboratory
- Recycler
- Arbor Mill
- Water Plant
- Network
- Pharmalab
- Autoplant
- Launch Complex

v.36
-----------------------------------
Fixed bug where running this mod with another mod that adds new PlayerPerks could cause the game to crash.

v.37 onwards
-------------------------------------
In Progress:
Added Colonial Wonders and Imperial Wonders to unlock affinity yields formerly unlocked by researching tech.

Added reference for Awesome Affinities mod, should improve compatability a little.
Added further conpatability for Awesome Affinities: Xenoscape perks affect Hybrid Jungle instead

Added reference for Improved Affinities, to improve compatability.

Overhaul of affinity yields from buildings. 
- All buildings with an affinity prerequisite now yield the same number of affinity points as they require levels to build.
- Buildings without affinity prerequsites do not yield any affinity, *unless* they are mutually exclusive with another building granting a different affinity.
- Wonders give percentage bonuses to affinity yield in that city.

Mutually Exclusive building groups
- Relic / Library Server / Memorial Grove
- Mass Digester / Arbor Mill / Biofuel Plant
- Civil Creche / Municipal Yeastworks / Milk Orchard
- Petro Plant / Extrusion Works / Biofactory
- Alien Preserve / Sonic Minefield / Ultrasonic Fence

moved arbor mill to terraforming tech

v.46
---------------------------------------
Added icons for new buildings. Including coloured versions for compatability with Colorful Tech Web.

v.47
-----------------------------------------
Updated lua UI overrides to account for changes in the BERT-release-date patch to the Vanilla game