> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/edautofighter/essential/upgrades.md).

# Upgrades

Upgrades are bought in the upgrades menu with an **EdDungeons currency** (`upgrades.currency`, default `credits` — any EdDungeons currency id works: `credits`, `money`, `essence`...).

### The three upgrades

| Upgrade         | Config key    | Default max level | Effect                                                                                           |
| --------------- | ------------- | ----------------- | ------------------------------------------------------------------------------------------------ |
| **Speed**       | `speed`       | 3                 | Adds `movement.speed-per-level` blocks-per-tick to the clone's movement speed per level          |
| **Daily Limit** | `daily-limit` | 30                | Adds `time.daily-limit-minutes-per-level` minutes (default 5) to the daily usage limit per level |
| **Target**      | `target`      | 1                 | Unlocks the [Target Mode](/p/edautofighter/essential/target-modes.md) selector in the main menu  |

### Cost formula

Cost increases by a fixed amount each level (arithmetic):

```
cost(level) = base-cost + cost-increase * level
```

`base-cost` is the level 0→1 price and every further level costs `cost-increase` more (e.g. base 50, increase 4 → 50, 54, 58, ...). Set `cost-increase` to `0` for a flat cost at every level.

### Configuration

```yaml
upgrades:
  currency: credits
  speed:
    name: 'Autofighter Speed'      # shown in upgrade messages ({upgrade})
    max-level: 3
    base-cost: 50
    cost-increase: 25
  daily-limit:
    name: 'Daily Limit'
    max-level: 30
    base-cost: 10
    cost-increase: 5
  target:
    name: 'Autofighter Target'
    max-level: 1
    base-cost: 50
    cost-increase: 0
```

**`name`** is the display name used in upgrade messages (the `{upgrade}` placeholder). Buying happens through the `[af-upgrade] <speed|daily-limit|target>` GUI action — see [Action Types](/p/edautofighter/customization/action-types.md).
