๐ง Abilities Schema
Defines actions or powers available to the player, such as movement, attacks, and passive buffs.
โ Field Rules & Accepted Values
| Field | Type | Required | Notes |
|---|---|---|---|
| id | string | โ Yes | Unique internal ID, e.g. 'dash' |
| displayName | string | โ Yes | Shown in UI |
| description | string | โ Yes | Explains gameplay behavior |
| effect | string | โ Yes | Engine-level effect (e.g., 'move_fast_horizontal') |
| type | "movement" | "combat" | "defense" | "utility" | "passive" | "traversal" | โ Yes | Ability category |
| key | string | โ No | Input key (e.g. 'X', 'Space') for active abilities |
| cooldown | number (float) | โ No | Cooldown between uses, in seconds |
| duration | number (float) | โ No | Duration of the effect once triggered |
| target | "self" | "enemy" | "area" | "directional" | โ No | Effect target |
| cost | object | โ No | Optional cost (e.g., { energy: 10 }) |
| requiredState | "ground" | "air" | "wall" | "any" | โ No | State required to trigger |
| unlockAtLevel | number | โ No | Auto-unlocked at player level โฅ value |
| tags | string[] | โ No | Searchable labels (e.g. ['speed', 'stealth']) |
| icon | string | โ No | UI icon path (e.g., 'dash_icon.png') |