That's kind of already how the system works honestly.
If a siege happens or a village is raided the food supply gets cut off and the stocks begin to be consumed and don't replenish until the cause of the disruption is removed.
- Villagers supply the town with food by selling it to the market. Other sources of food income are trade caravans and passive bonuses.
- A portion of that food is consumed/removed from the market and added to the food stocks on each daily tick.
- When the food stocks are full the surplus food consumption is added to prosperity at a 10:1 ratio. A well fed town therefore grows faster.
- If food is suddenly removed from the market (e.g. by an army), the negative balance is withdrawn from the settlement's food stocks on each daily tick.
- Once food stocks hit 0 the negative food balance begins having an effect on everything else (garrisons starve, etc.).
- Villagers and caravans eventually return to resupply the town with food and reverse the food supply crisis.
The passive modifiers to food from bound villages and the orchards project are directly applied to the "Expected Change" number that flows into food stocks. This is effectively similar to villages selling a portion of their total goods directly into a town's food stock rather than the market. Armies buying food cannot and do not affect these passives, and they can only be removed by sieging and raiding.These passives make up anywhere from roughly 25% to 40% of the total food income of a town. Maybe more if you rush-build the orchards project while your prosperity is still low.
By not making the passives dominate the food supply you allow caravan trade, banditry, and other things to play a role in the health of a town. For instance, I can break into a siege with food in my inventory and feed a garrison that's in the midst of starving.
With food stock capacity moderately increased in 1.4.0 the issue of armies buying all the food out is really only a problem if a town was already stuggling to feed itself to begin with. If an otherwise healthy town has a full food stock and all food is purchased from its market, the town will be able to recover in a couple days before even half of the stock is wiped out, meaning minimal harm is done.
*NOTE*: It looks like something to do with orchards broke between 1.4.0 and 1.4.1. All orchards were removed from towns that had them before updating the patch, causing most towns to now be in a food crisis and in economic freefall. If you start a new game however they are still available.
First thanks for the explanation because I know it takes time to write it and I'm sorry if my english is weird sometimes.
My objection to this system is that surrounding villages should sell to local market and this would be the only real factor when considering city starvation. Food from other sources should be "luxury" goods, attracted by high prosperity and consumed by wealthy population. Cities should export only those goods not consumed by people or workshops, and they should consume luxuries only if prosperity is high enough. Food consumption is not really increased substantially by prosperity, it's just wealthy people tends to spend more in luxuries. Then prosperity as an abstract value increases with the amount of goods imported and exported. If the flow of caravans stop, prosperity decreases and imported food demand decreases because there is less money. Essential food demand remains constant for the most part.
It could be possible to sustain a population exclusively with imported food but only in heavily centralized empires or in highly merchantilized cities.
I apologize if my comments were too harsh. After reading this, maybe it's not so broken as I thought. I still think those passives should be higher. It gives too much randomness to bandits, caravans or armies. Not to mention players can play an economic war just buying and selling food massively.
I hope I explained myself. It's different to buy from local market than to buy from outer markets. Having the same stock for both worries me.
NOTE: I hope you are right and it's just a bug, but after reading drallim33 comment I'm appaled, I never took the time to watch how AI manages food




