Caravans and fixing city spam
The caravan system was nerfed in 1.1 and city spam is still an issue. Here is an extremely simplistic way of fixing both these problems.
Some variables to keep things simple:
- cityOriginGold = the population of the city the caravan has left * 10%.
- caravanTravelDist = the distances (in tiles) that the caravan has traveled from its city of origin to its destination.
- originCityLevel = the level of the origin city (1, 2, 3 etc).
- destCityLevel = the level of the destination city (1, 2, 3, etc).
The solution:
- When a caravan leaves a city, the amount of cityOriginGold gold is automatically deducted from the player's reserves.
- When a caravan enters a city, the amount of (cityOriginGold * (caravanTravelDist / 20)) gold is automatically added to the player's reserves.
What does this all mean?
Well in order for trading to be profitable, the distance between two trading cities must be greater than 20 tiles or the player actually loses money rather than makes money.
Sovereign bonuses, city improvements, spells and such can be used to tweak the 20 tile distance.
Thoughts?
*edited, thoughts on including a trading frequency:
- The frequency of trading between two cities can be a function of their difference in levels:
- caravan from city A (level 3) to city B (level 1): a caravan would leave every 36 turns.
- caravan from city A (level 2) to city B (level 4): a caravan would leave every 14 turns.
Example formula for frequency in the above examples would be: (originCityLevel + destCityLevel) / destCityLevel) * 9 turns. Thinking was that trade from smaller cities would happen more frequently but in smaller amounts but trading from larger cities would happen less frequently but in larger amounts. Numbers can be tweaked.