# gg.infinitetavern.adventurer.heroMastery

> Published by [infinitetavern.gg](https://lexicon.garden/identity/did:plc:vxwgn77hp5ikvbiggm5es3rv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.heroMastery)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.heroMastery/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vxwgn77hp5ikvbiggm5es3rv/gg.infinitetavern.adventurer.heroMastery/examples)

## Definitions

### `gg.infinitetavern.adventurer.heroMastery`

**Type**: `record`

An adventurer's mastery record for a specific hero — tracking how many battles they have fought together and the glory they have achieved. One record per hero, stored at rkey equal to the heroKey.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `wins` | `integer` | Yes | Championship victories with this hero. |
| `heroKey` | `string` | Yes | Internal key identifying the hero. |
| `heroName` | `string` | Yes | Display name of the hero. |
| `gamesPlayed` | `integer` | Yes | Battles fought commanding this hero. |
| `lastPlayedAt` | `string` (datetime) | Yes | ISO 8601 UTC timestamp of the most recent battle with this hero. |
| `bestPlacement` | `integer` | Yes | Finest standing achieved with this hero (1 = champion). |

## Raw Schema

```json
{
  "id": "gg.infinitetavern.adventurer.heroMastery",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "heroKey",
          "heroName",
          "gamesPlayed",
          "wins",
          "bestPlacement",
          "lastPlayedAt"
        ],
        "properties": {
          "wins": {
            "type": "integer",
            "minimum": 0,
            "description": "Championship victories with this hero."
          },
          "heroKey": {
            "type": "string",
            "description": "Internal key identifying the hero."
          },
          "heroName": {
            "type": "string",
            "description": "Display name of the hero."
          },
          "gamesPlayed": {
            "type": "integer",
            "minimum": 1,
            "description": "Battles fought commanding this hero."
          },
          "lastPlayedAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 UTC timestamp of the most recent battle with this hero."
          },
          "bestPlacement": {
            "type": "integer",
            "maximum": 8,
            "minimum": 1,
            "description": "Finest standing achieved with this hero (1 = champion)."
          }
        }
      },
      "description": "An adventurer's mastery record for a specific hero — tracking how many battles they have fought together and the glory they have achieved. One record per hero, stored at rkey equal to the heroKey."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
