Where are the unit upgrade costs?

Juriel

Chieftain
Joined
Oct 31, 2005
Messages
47
I want to lower the upgrade costs, as currently it's much easier to just build a new troop than to upgrade an existing one (paying 100 gold per unit). I just haven't managed to find a file listing those. Where is it?
 
I see this tag in CIV4HandicapInfo.xml.
Code:
	<iAIUnitUpgradePercent>
I'm fairly sure that deals with just AI upgrades, and I don't see a corrosponding upgrade for players. You may be able to just do it with the AI in the tag though.
 
Nope, that part's not it. Those values go down the higher the difficulty is, which doesn't happen for the player, so those are just to make the game easier for the AI.
 
It's in one of the game info XMLs. Look for "GoldPerHammerUpgrade" or something similar. Default it's set to 3.
 
It's in the GlobalDefines.xml, right in the XML folder.

BASE_UNIT_UPGRADE_COST is the base cost, by default 25.
UNIT_UPGRADE_COST_PER_PRODUCTION adjusts it based on the unit's cost, default 3.

Let's see what would be good amounts for those...
 
Back
Top Bottom