# Levels

File: `shared/config.lua` → `Config.Levels`

Controls the leveling progression for the gardener job.

## Fields

| Key          | Type     | Default | Description                 |
| ------------ | -------- | ------- | --------------------------- |
| `maxLevel`   | `number` | `100`   | Maximum achievable level.   |
| `xpForLevel` | `number` | `1000`  | Base XP required per level. |

## How it works

The XP needed to level up scales linearly:

$$
\text{XP required} = \text{currentLevel} \times \texttt{xpForLevel}
$$

For example, at level 5 with the default value of `1000`:

* XP to reach level 6 = `5 × 1000 = 5000`

When a player reaches `maxLevel`, their XP is capped and no further leveling occurs.

Each level-up grants **1 skill point** automatically.

## Example

{% code title="shared/config.lua" %}

```lua
Config.Levels = {
    maxLevel = 100,
    xpForLevel = 1000,
}
```

{% endcode %}
