Thalassicus
Bytes and Nibblers
There's a whole range of bugged functions in the game, but a recent one I noticed is GetYieldRateModifier. It does not factor in the CapitalGrowthMod attribute from the Tradition policy, even though CapitalGrowthMod is displayed as a yield rate modifier on the tooltip in CityView.lua and indicates an increase in food supply on that tooltip. The function does correctly consider other modifiers, like unhappiness or the Floating Gardens.