# com.gamethesky.fightthesky.fighter

> A player's fighter, published into their own repo so anyone can fight its ghost: the build the sim uses, the style the CPU plays it in, and the paint it wears. One per account, at rkey `self`; saving again overwrites it. A ghost run pins the version it fought by CID, so overwriting changes no old result.

- Kind: record
- Record key: literal:self
- Authority: fightthesky.gamethesky.com
- Lexicon: 1
- Published by [gamethesky.com](https://lexicon.garden/identity/did:plc:fpi7mvknwqh264gz6kug7pmk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fpi7mvknwqh264gz6kug7pmk/com.gamethesky.fightthesky.fighter)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fpi7mvknwqh264gz6kug7pmk/com.gamethesky.fightthesky.fighter/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fpi7mvknwqh264gz6kug7pmk/com.gamethesky.fightthesky.fighter/analytics)

## Record (`com.gamethesky.fightthesky.fighter`)

Type: record · key literal:self

### Properties

- `build` (ref, required): The fighter's build: twelve points at most over four stats of 1–5, and a special. It changes the sim, so a verifier replaying a ghost fight uses exactly this.
  - Reference: `com.gamethesky.fightthesky.run#build`
- `createdAt` (string · datetime, required)
- `look` (string): Cosmetic: the fighter's three paint colors, as `rrggbb.rrggbb.rrggbb` (body, trim, gloves). The sim never sees it.
  - Constraints: maxLength: 32
- `style` (string, required): How the CPU plays this fighter when it's a ghost: a rusher closes in and swings, a turtle blocks and punishes, a zoner keeps range and throws, a tricky one jumps, sweeps and dashes.
  - Constraints: maxLength: 16, knownValues: rusher | turtle | zoner | tricky

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A player's fighter, published into their own repo so anyone can fight its ghost: the build the sim uses, the style the CPU plays it in, and the paint it wears. One per account, at rkey `self`; saving again overwrites it. A ghost run pins the version it fought by CID, so overwriting changes no old result.",
      "key": "literal:self",
      "record": {
        "properties": {
          "build": {
            "description": "The fighter's build: twelve points at most over four stats of 1–5, and a special. It changes the sim, so a verifier replaying a ghost fight uses exactly this.",
            "ref": "com.gamethesky.fightthesky.run#build",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "look": {
            "description": "Cosmetic: the fighter's three paint colors, as `rrggbb.rrggbb.rrggbb` (body, trim, gloves). The sim never sees it.",
            "maxLength": 32,
            "type": "string"
          },
          "style": {
            "description": "How the CPU plays this fighter when it's a ghost: a rusher closes in and swings, a turtle blocks and punishes, a zoner keeps range and throws, a tricky one jumps, sweeps and dashes.",
            "knownValues": [
              "rusher",
              "turtle",
              "zoner",
              "tricky"
            ],
            "maxLength": 16,
            "type": "string"
          }
        },
        "required": [
          "build",
          "style",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.gamethesky.fightthesky.fighter",
  "lexicon": 1
}
```
