๐ช Token Schema
Defines collectible game tokens that grant items, buffs, currency, or trigger events.
โ Field Rules & Accepted Values
Field | Type | Required | Notes |
---|---|---|---|
id | string | โ Yes | Must be unique across all tokens |
name | string | โ Yes | Used in UI and logs |
type | enum | โ Yes | Only accepts values from token type list below |
value | number | โ No | Required for health, currency, xp_boost, damage_boost |
grants | string | โ No | Required for ability_grant, must match abilities schema |
sprite | string | โ No | Optional image asset path |
levelId | number | โ No | If omitted, token is global |
description | string | โ No | Optional display text |
duration | number | โ No | Only for timed buffs (in seconds) |
hidden | boolean | โ No | If true, must be revealed via logic |