Faith
Features:
1) Every Religious Building (Temples, Monasteries, Cathedrals) of your State Religion generates 1 Faith Point
2) Every Religious Wonder of your State Religion (Shrines) generates 5 Faith Points
3) When Faith Point reaches a Faith Threshold, gains a new Faith Benefit
Faith Benefits:
+1 Happiness, Health, Yield or Commerce to Cathedral of that Religion in All Cities.
This applies to all of them, whether built or to be built, or current cities or new cities.
Religious Buildings of State Religion generate Faith Points
Gains a benefit upon new Faith Level
Faith Points reset but Faith Threshold remains when State Religion changes.
Notes
1) It is designed this way because I wanted Faith Points generated to only benefit things of that religion, and not all religions, so the only way is to add benefits to certain buildings of that religion. Cathedrals are the obvious choices, since there is only one shrine, and temples/monasteries are too common.
2) List of Buildings, Wonders are hard-coded so add additional ones into the Faith File yourself.
3) Faith points per Building/Wonder and Threshold are customisable, all in the Faith File.
4) Uses Player Script Data. Good luck merging with other mods using that script.