Unit Upgrade Gold Costs

EndoConvert

Warlord
Joined
Dec 17, 2010
Messages
297
Where are unit upgrade gold costs stored? I looked in all the XML files in the assets\Gameplay\XML\Units directory and couldn't find them. Civ5Units.xml has what units upgrade to what under <Unit_ClassUpgrades></Unit_ClassUpgrades>, but I can't find any actual gold costs.
 
Where are unit upgrade gold costs stored?

They're not. They're based on the difference in base costs between the two unit types. So if a unit that costs 100 hammers upgrades to a unit that costs 200 hammers, it'll take that 100 and multiply it by some conversion factor based on difficulty settings, and say that it takes X gold to upgrade.

There are ways to modify this: wonders and policies that reduce it across the board already exist, and you can have a promotion that gives a single unit a decreased upgrade cost. (No promotion like this exists in the vanilla game, but you can make one.) But at present there's nothing in the unit table itself to adjust this.
 
Back
Top Bottom