AutoTip Compatibility Errors

Sneaks

Brooklyn Bum
Joined
Oct 15, 2010
Messages
1,877
Location
NYC
Some things the AutoTips miss:

Building yield changes from Policies
Building yield changes from Beliefs.

An example is Pouakai's Nazca Lines. It gives bonus science if Rationalism is adopted and bonus Culture if Piety is adopted.

While a full cycle through of every building yield modifier in policies and religions for each autotip would likely be sluggish, I am not sure of a better solution just yet
 
The yield change lines come from PlayerClass.GetBuildingYield in YieldLibrary.lua. The function has blocks for policies and beliefs, so it should show up on the building after adopting the belief or policy.

I chose to only show these things on buildings if the belief/policy is active. The belief/policy tooltip itself says which buildings it improves. This shortens the building tooltips by hiding inactive effects. Buildings like the Shrine would otherwise have a dozen extra entries for things which do normally do nothing.
 
Back
Top Bottom