I copy example from some patch example ruleset's changes.
But I decided to add one more thing - reduce production for conquered cities.
I set def value to 6, checkpoint to 5, so If player create city, there;s no production penalty. But server sets the counter's value to 0, when city was conquered. Taking above in mind, each city's tile should get food penalty, when city is conquered, but no when founded.
But something do not work.
Yup, currently "OWNED" counters are zeroed any time a city gets an owner and for complicated effects we must have a control of the reason why it happens (like the "reason" parameter in "transfer_city" callback). But now for new cities we may turn the effect off by "Age" requirement.
Reply To ihnatus
Yup, currently "OWNED" counters are zeroed any time a city gets an owner and for complicated effects we must have a control of the reason why it happens (like the "reason" parameter in "transfer_city" callback). But now for new cities we may turn the effect off by "Age" requirement.
The reason may be good, but currently we have default value. When city is built, it counters get the default values. When conquered, OWNED are zeroed. I check in the code twice.
Reply To lachu
The reason may be good, but currently we have default value. When city is built, it counters get the default values. When conquered, OWNED are zeroed. I check in the code twice.
Hm yes, looked at it, likely some inconsistency but that's an early realization any way. As a wild guess, some underflow in tile output value?
It looks like client do not update tile information on minimap. But I update ruleset too.
sandbox ruleset should have a demonstration of using counters.