The latest example I could remember was that initial city maintenance was reduced from 10 to 5 by Joe and that was (investigation....) as long ago as in rev. 9774. However, I don't believe this would have had a big impact.
Someone (
@raxo2222 ?) might want to investigate how much of an impact it (INITIAL_CITY_MAINTENANCE) has on a game where you have like 5-6 cities. Perhaps the impact is bigger than I assume.
.
From modiki it says how much first city will cost in maintenance.
INITIAL_CITY_MAINTENANCE Maintenance cost for the first city
Are there equations, that depend on this value?
It may be as well static.
It appears like is doesn't exist in .cpp files (DLL source)
I searched for it in all files in source folder and even then Notepad++ failed to find it.
Also comment for that define in defines.xml it says originally was 0.
Lets see if game will complain if I outright remove this define.
By the way I found that:
<Define>
<DefineName>POWER_HEALTH_CHANGE</DefineName>
<iDefineIntVal>-2</iDefineIntVal>
</Define>
<Define>
<DefineName>DIRTY_POWER_HEALTH_CHANGE</DefineName>
<iDefineIntVal>-4</iDefineIntVal>
</Define>
Ew random constants, they were near seemingly unused INITIAL_CITY_MAINTENANCE.
Game didn't complained.
Not even python log happened.
But I had maintenance cost of 0.19 (-10% factor was coming out of nowhere, maybe civics?)
By the way cost of tech I selected was only 100 (5*20, 20 was coming from Eternity).
My settings were Gigantic/Eternity/Noble.
It seems like this bug caused all other factors except game speed to be ignored in tech cost calculations, or at least vastly reduced.
I'll do this:
<Define>
<DefineName>INITIAL_CITY_MAINTENANCE</DefineName>
<iDefineIntVal>1000000</iDefineIntVal><!-- was 0 -->
</Define>
to check if it is used at all.
That is processed by code.
I had same maintenance of 0.19 when I wounded first city and 9 when I founded second city like 5 tiles farther on Normal/Noble/Standard.
I have few players saves, so I can stress test them.
Seems like nothing happened.
Before recalculating:
After recalculating:
Did one turn. Expenses only marginally changed.
I found only two mentions of this constant.:
For comparison lets search for BUILDING_PRODUCTION_PERCENT constant in all files in mod.
Here we see this constant being used in code.
Conclusion: INITIAL_CITY_MAINTENANCE doesn't have ANY effect, because it doesn't exist in code.
This means any adjustments to it did nothing.