Unit (Civ5)

A unit in Civilization V is an entity which can move around the map and perform certain functions. They are the "mobile" part of your empire, just as cities are its "stationary" part. Civilian units are essential to its economy, while military units ensure its safety and allow you to attack and defeat other empires.
== Types of Units ==
Civilian units are those that are unable to participate in combat. However, this doesn't mean they aren't important - they perform a wide range of useful activities, from constructing tile improvements to founding cities. Civilian units are often expended after performing their duties, especially if they are Great People. Also, all civilian units can be instantly destroyed or captured by an enemy military unit that moves into their tile.
Most units in the game are military units, meaning that they have the ability to initiate combat. There are several types of them, which are often referred to in other articles:
* Land units. These are all units which are designed to act on land. Once the Optics technology has been discovered, they can enter water tiles through the process of embarkation. While embarked, land units use transport ships to move across water. In this state they can't attack (unless they attack a land tile), and are themselves very vulnerable to attack. Certain abilities can diminish this vulnerability.
* Naval units (or ships). These are the units native to water tiles. They can only be built in coastal cities, and can only move on water tiles. Ranged naval units, however, may attack units on the land.
* Melee units. All those units which can only attack in melee — that is, units in tiles adjacent to them. They can be both land and naval. See the article on melee combat for more information.
* Archery (or ranged) units. All those units that have ranged attack capabilities (usually can fire on units from several squares distance, and don't suffer counterattack from melee units). They can be both land and naval. See the article on ranged combat for more information.
* Siege units or weapons. These are land units specifically designed to attack cities. All of them have an attack bonus against cities, except for the Hwach'a.
* Mounted units. These are highly mobile land units, specializing in hit-and-run attacks. A common trait of theirs is the ability to move after attacking.
* Gunpowder units. These are middle and late-game land units, armed with guns. They are essentially modern melee units, replacing the melee units of earlier eras.
* Armored units. Late-game mobile land units. They are the practical successors of mounted units.
* Air units. These are late-game units that are able to fly. These units are essentially melee units which are able to move through the air. See the article on air combat for more information.
* Bomb units. These are powerful late-game units. They explode when used to attack, meaning that they can only be used once.
== Producing Units ==
There are several ways to get units:
* By training/producing them in a city. This is the straightforward way - just set the cycle of an applicable city to the unit you want, and after several turns the unit will appear in the city. Note that military units may start with experience if trained in a city with the relevant buildings.
* By purchasing them with in a city. This too can be done in applicable cities, and if your treasury has the necessary currency available. Usually this is , but certain units may only be purchased with ; also, certain religious beliefs vastly extend the list of units which may be purchased with , allowing additional flexibility. The purchased unit appears immediately in the city, and may again start with experience if the relevant buildings are present. Note that you can't purchase units of a class which is already present in the city - for example, if there's a military unit stationed there, you'll have to move it to purchase another one.
* By generating enough of the relevant Great People points. (Only applies to Great People.) These points are generated on a per-city basis, and the relevant Great Person will be "birthed" in this city. Exceptions to this rule are the Great General, Great Admiral, and Great Prophet. Their points generate globally, not locally, and they are "birthed" in random cities (for the General and Admiral) or in the /Holy City (for the Prophet).
* By being Friends or Allies with a City-State. In this case the gifted unit will appear in your territory, close to the City-State which gave the gift. Units gained thus sometimes also come with experience, which varies depending on the number of military training buildings the City-State has constructed (and is increased by the unique ability of the Siamese). Usually only Militaristic City-States gift units. The gifts are always era-relevant, meaning that you won't get an Archer if you're in the Renaissance Era; you'll get a Crossbowman instead. Also note that all Militaristic City-States have a "special" unique unit they are able to gift - you'll start getting it during the era this unit normally appears (and only during this era) if you happen to be their ally at the time. Finally, note that all City-States will start gifting Great People if you complete the Patronage social policy tree. Gifted Great People are random.
* By building wonders. Several wonders in the game have the effect of supplying free units at completion - for example, completing the Pyramids gives you two Workers, while completing Broadway gives you a free Great Musician. Units gained this way appear only when the wonder is first completed, so if an enemy later captures the city that built the wonder, they won't get the free units again.
In some cases, you will also need strategic resources for your units. Any resources needed are deducted from the total at the beginning of the cycle for the relevant unit, or at the moment of its purchase. If you have no available counts of the needed resource, you won't able to build or purchase this unit. You should also note that if you had produced a unit which needs a particular strategic resource, and later lose access to this resource so that its count drops to negative values, this unit (and all that need this resource) will fight with a -50% penalty until you rectify the situation.
== Unit Supply and Maintenance ==
Each empire can support only a limited number of units. Once produced, each unit costs to maintain, with the cost going up in successive eras for more advanced units. In fact, unit maintenance is one of the two big stones weighing down your empire's treasury (the other one being building maintenance). Maintaining a large army can be quite a financial challenge, especially in the late game, so think carefully about whether or not you need all those Workers and Inquisitors lying around doing nothing.
Note that if your output becomes negative and your treasury empties, your units may start disbanding (vanishing) on their own. If you don't want to lose the army you've trained and honed so carefully, take care to have enough at all times.
All units except Caravans and Cargo Ships also contribute to your empire's unit supply, the limit of which is determined by the difficulty level, number of cities you have, and . If you have more units in your empire than your limit, you receive a -10% penalty in all cities in your empire for every unit above the limit (up to -70%).
The unit supply is very forgiving as you usually will never exceed the limit as you grow your empire, unless you completely ignore growth and build a large military instead. Usually you will suffer from unit maintenance before you get close to the supply limit.
=== Unit Supply Limit Calculation ===
unitSupplyLimit = difficultyModifier + (numberOfCities \times difficultyCityModifier) + (empirePopulation \div 2)
Variable name 	Explanation
unitSupplyLimit 	The supply limit of your empire (rounding down)
difficultyModifier 	The base modifier determined by difficulty level (10 on Settler, 7 on Chieftain and Warlord, 5 on Prince and higher)
numberOfCities 	The number of cities in your empire
difficultyCityModifier	The city modifier determined by difficulty level (3 on Settler and Chieftain, 2 on Warlord and higher)
empirePopulation 	The number of s in your empire
== Unit Statistics and Abilities ==
All civilian units have certain special abilities. Some of them are inherent to the unit, such as the "Found City" ability of the Settler; others (mostly the abilities of the Worker) are unlocked via technological advancement.
Military units have a number of statistics which control their core performance and abilities in combat (which are detailed here). They also may have special abilities, although these are quite focused and have limited use (such as bonuses against certain unit types). However, all military units can earn promotions by gaining enough XP to advance in level. These promotions may give them special abilities which make them really fearsome in combat.
== Unit Upgrading ==
This refers solely to military units, and means the process of replacing outdated weaponry and machines with more modern ones. You will notice that despite the huge number of units available in the game, most of them actually fall into several distinct types (see above), which simply change weapons and equipment (and tactical formations) during the ages. This change is known as unit upgrading, and may be done only after you research certain key technologies (developing the new, more advanced unit, and allowing the upgrade). The unit needs to be inside your territory (not Allied territory), and you'll need to spend some on the upgrade.
=== Cost calculation ===
baseCost=[10+\max(0,2[upgradedUnitProductionCost-existingUnitProductionCost])]\times (1+0.3upgradeUnitEraNumber)CvUnit.cpp - CvUnit::upgradePrice()
Variable name 	Explanation
baseCost 	A base upgrade cost before multipliers are applied
upgradedUnitProductionCost	cost to build the unit being upgraded to
existingUnitProductionCost	cost to build the unit being upgraded from
upgradeUnitEraNumber 	The cost to upgrade becomes more expensive with the era of the prerequisite tech of the unit being upgraded to.
This baseCost is further modified by multipliers:
* AI leaders (unless on a player's team) see a 50% discount on difficulty levels up to Prince, which rises to 70% for Deity.CIV5HandicapInfos.xml
* Other multipliers include those from social policies.
Finally, the number is rounded down to the nearest 5 .
=== Notes ===
Air units may only be upgraded while in cities - Carriers can't support the high-tech engineering needed for the upgrades. The unit loses all its remaining Movement Points for the turn of the upgrade, and is ready to go the next turn. Also, if the unit was wounded, it will continue at its present Health even if it did not move at all on the turn of the upgrade.
Maybe the greatest advantage of upgrading units is that they retain all their promotions, and even some of their inherent special abilities. Core abilities like extra strength or mobility are usually lost, while "special" abilities and promotions like "Great Generals" or "Extra Range" are retained. So, for example, when you upgrade an Aztec Jaguar to a next-gen Swordsman, the new Swordsman will not only retain all promotions the Jaguar had earned during its existence, but it will also retain the Jaguar's Woodsman abilities! Note that some civilizations' unique units come with free "regular" promotion (such as Drill I or Siege I). These units are spawned with these promotions, or acquire them automatically upon upgrading from previous units. You should be aware of that and plan not to waste experience for a promotion you are about to get for free later!
It is not possible to "skip" upgrades: for instance, in Brave New World, for instance, to upgrade a Swordsman to a Musketman, it must first be upgraded to a Longswordsman.
Upgrading existing units is much more advantageous than producing new ones, not only because of previously earned abilities that are retained, but also because you save the time for building the new units in your cities. Of course, you'll need to ensure you have enough for the upgrade, as well as any strategic resources needed.
== References ==
== See also ==
* Unit in other games
 
Category:Game concepts (Civ5)