A thread by samson says the base formula for trade bonuses is
(distance + 10) x (trade arrows of both cities) / 24
I have tried this out a few times in a scenario in cheat mode, and it seems close when I trade with my own cities, producing small bonuses of about 8 gold. But when I trade with an overseas barb city (same game, same turn, only slightly greater distance), I get bonuses of about 250 gold. I don't see why I get such wildly different numbers.
The only important factors I can find are the "overseas" and "foreign" ones, each a multiplicative factor of 2. [I used only demanded goods, mainly hides, in all the tests]. The barb city might have up to 11 arrows, while my two test cities have about 6+3 = 9 together. Does all this seem right? I feel like there must be a factor of about 3 to 4 that I'm missing.
(distance + 10) x (trade arrows of both cities) / 24
I have tried this out a few times in a scenario in cheat mode, and it seems close when I trade with my own cities, producing small bonuses of about 8 gold. But when I trade with an overseas barb city (same game, same turn, only slightly greater distance), I get bonuses of about 250 gold. I don't see why I get such wildly different numbers.
The only important factors I can find are the "overseas" and "foreign" ones, each a multiplicative factor of 2. [I used only demanded goods, mainly hides, in all the tests]. The barb city might have up to 11 arrows, while my two test cities have about 6+3 = 9 together. Does all this seem right? I feel like there must be a factor of about 3 to 4 that I'm missing.