If someone has a negative surplus and not enough gold to cover that, no units are produced. But in which order is everything calculated?
Are units produced before upkeep is calculated? Do they not pay upkeep on the turn they're produced?
I'll try to illustrate with an example:
Let's say I have a Upkeep of 100 gold and a income of 120, with 0 gold in my treasury.
At the start of m my turn additional units are produced, totaling extra upkeep of 30 gold.
Which scenario is then correct?
1:
Income is collected, the treasury is now at 120
New units are produced, raising my upkeep to 130
Upkeep, (with the new units included) are subtracted, leaving with a negative surplus of -10 for the next turn, meaning no more units will be produced next turn unless I increase my income or reduce my upkeep.
2:
Income is collected, the treasury is now at 120
Upkeep is calculated (including the new units), since there's not enough gold to produce the new units, no new units are produced.
Upkeep (100 gold) for the already existing units are subtracted , leaving me positive surplus of 20 gold.
Next turn (assuming no changes in income/upkeep), the 20 gold gets added to the income of 120, meaning I now have enough gold to build the new units and get 10 gold left.
3: Income is collected, the treasury is now at 120
Upkeep is calculated (including the new units), since there's not enough gold to produce all new units; after the existing unit's upkeep of 100 gold have been paid, new unit's are randomly created for the 20 guld left over, until the remaining gold is not enough for the next randomly chose unit.
Or some other scenario?