This is a python based trait I made for my Thomas' War mod:

This really isn't meant to be used stand-alone but for modders who want to include new traits outside the traditional XML bonuses.
All the python is labeled and searching for 'Agr trait' should find the changes.
I recommend downloading and using Winmerge to combine python.
Edit 1: The food on city growth bonus now scales with game speed.
Thread

This really isn't meant to be used stand-alone but for modders who want to include new traits outside the traditional XML bonuses.
All the python is labeled and searching for 'Agr trait' should find the changes.
I recommend downloading and using Winmerge to combine python.
Edit 1: The food on city growth bonus now scales with game speed.
Thread