upgrade_unit
Upgrades a Civilization V unit along its path for gold when requirements are met. Returns a new unit_id, so use that replacement ID for future orders.
Instructions
Upgrade a unit for gold along its upgrade path (e.g. Warrior -> Swordsman). Needs full moves,
own/allied territory, the gold and any strategic resource. The engine replaces the unit: use the
returned unit_id (new) from now on, not the one passed in. available_unit_actions lists
COMMAND_UPGRADE when possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes |