Skip to content

Teamfight Tactics card data ​

The Teamfight Tactics catalog holds one card per champion of a set. This page lists every field on those champion objects and in the catalog globals, with a real example, and explains the two team codes.

TFT does not run scripts yet: there are no TFT calculators or team rules. The fields below are the same ones other games pass to their scripts, so they are also what a future TFT script will read.

Card keys ​

A TFT card is one champion in one set. The same champion in another set is a different card with its own cost, traits and ability, so Ahri from Set 16 and Ahri from Set 18 have different ids.

  • The card id, card.id: tft- plus a hash, like tft-e1515e1ff433a3ee708c.
  • The printing id: the set, then the source character id, like tftset18-da-18-morgana. A champion has exactly one printing.

card.setCode is the set mutator (TFTSet18), and game.setNumber is the bare number (18).

Card fields ​

Every card, in every game, has these top-level fields:

PropertyTypeDescription
idstringCatalog id of the card identity ("01DE012" in LoR, "pikachu-ex--1f29b66b68bc" in Pokémon).
slug?stringThe card's public URL segment (#2189, ADL §64): a frozen English slug, identical in every locale. Equals id for a game whose readable slugs are off (readableCardSlugsEnabled in @turny/game-adapters) or a card that has no readable slug yet. Pokémon keeps its <name>--<hash12> id as its slug; LoR's switch stays off for good, so its URLs stay its card codes. A page whose route param already equals slug renders; any other known key (the id, a history slug, an alias) redirects to it, so a card whose slug equals its id never redirects to itself.

The catalog export (#2193) writes it only for a switched-on game and only when it differs from id, so an absent slug means the id: always read it through cardSlugOf (@turny/game-adapters).
namestringDisplay name in the catalog locale.
setCodestringSet of the card, or of its default printing ("set1", "sv2", "OGN").
collectible?booleanFalse for cards that can't go in a deck (LoR tokens and level-ups).
assets?CardCatalogCardAssetContract[]Images of the card's default printing.
printings?CardPrintingContract[]Every printing of the identity, default printing first (only some on a partial card, see partialPrintings). Absent in LoR.
printingCount?numberLean list files (#1323), which omit printings, partial cards (see partialPrintings) and per-identity core files (#1522): how many printings the full card has. Absent on full cards and in games without printings.
printingSetCodes?string[]Lean list files (#1323), partial cards and per-identity core files: the distinct set codes across the full card's printings, in printing order. Absent on full cards.
printingsFile?stringPer-identity core files (#1522) only: the card's printings file (identities/<id>.printings.<hash8>.json, relative to the locale directory, see cardCatalogIdentityPrintingsFileName), in place of printings. Absent when the printings are inline in the core file.
partialPrintings?booleanTrue on a partial card (the featured-cards bundle, #1330): printings holds only some of the identity's printings (its default printing plus the ones the featured content references), while printingCount / printingSetCodes summarize all of them. Absent on full and list cards.
hasImage?booleanFalse when none of the card's printings has an image in this language. Absent means it has one.
languages?CardLanguageEntry[]Catalog locales that hold real text for this card (#2552). A locale whose entry is only fallback text is absent. Absent on older exports and in single-locale games.
game?TGameDataGame-specific fields; see the per-game *CardGameData type.

Each entry of languages (CardLanguageEntry):

PropertyTypeDescription
localestringCatalog locale ("zh-tw", "de_de"), not an app locale.
statusCardLanguageStatusWhere the text comes from: official (printed) or unofficial (a translation).

Values of a language entry's status (CardLanguageStatus):

MemberValueDescription
Official"official"Printed in this language by the publisher.
Unofficial"unofficial"Real text the publisher did not print in this language: a reconstruction or a translation.

Printings ​

Each entry of printings (CardPrintingContract):

PropertyTypeDescription
idstringPrinting id; deck refs use it ("sv2-11" for Pokémon, "ogn-030-298" for Riftbound).
setCodestringSet the printing belongs to ("sv2", "OGN").
number?stringCollector number within the set.
language?stringLanguage of the printing, when it is not the catalog's own.
releaseDate?stringRelease date as the source gives it ("2023/06/09").
assets?CardCatalogCardAssetContract[]This printing's own images.
variants?CardVariantContract[]Treatments of this printing (foil, alternate art, …).
metadata?JsonObjectExtra per-printing data (rarity, artist, store ids); game-specific.

Each entry of a printing's variants:

PropertyTypeDescription
idstringVariant id, usually <printing id>:<kind> ("ogn-030-298:normal").
kind?stringTreatment kind ("normal", "foil", "alternate_art"); values are per game.
label?stringDisplay label, when the kind alone is not enough.
metadata?JsonObjectExtra per-variant data; game-specific.

Each entry of assets (on the card and on each printing):

PropertyTypeDescription
kindCardAssetKindWhat the image shows: "card" (framed render), "full" (full art), "icon", "banner", "slice", "portrait", …
urlstringImage URL.
format?CardAssetFormatImage format ("webp"), when known.
width?numberWidth in pixels, when known.
height?numberHeight in pixels, when known.
metadata?JsonObjectExtra per-asset data; game-specific.

Game fields (card.game) ​

Everything specific to TFT lives on card.game: the shop cost, the traits, the ability, the 1-star combat stats and the Team Planner id.

A few champions pick an origin in game (Set 18 Lux chooses one of nine). The catalog keeps one card for the champion and lists each choice under variants, with its own traits. All the variants share the base card's planner id, so a team code still round-trips.

PropertyTypeDescription
characterIdstringSource character id ("DA_Cinderling18"), stable within a set; the identity key input.
setNumbernumberSet number (18).
setMutatorstringSet mutator the card comes from ("TFTSet18").
costnumberShop cost, 1 to 5 (a few special units cost more).
traitsTftTraitRefContract[]Traits in printed order.
plannerCode?numberThe client's 12-bit Team Planner id (1015 → "3f7" in a team code), when the set has a planner roster. Absent on sets without one (every set before 17) and on non-roster units.
role?stringSource role hint ("ADTank", "APCaster"). When the source has no role, ingest derives "Tank" for a melee unit (range 1) that starts combat with at least 20 mana; any other unit without a source role has none.
ability?TftChampionAbilityContractThe champion's ability.
stats?TftChampionStatsContractCombat stats at 1 star.
variants?TftChampionVariantContract[]Origin variants sharing this card's planner id (see TftChampionVariantContract).
legalities?TftCardLegalitiesLegality per format ({ standard: "legal" }; a rotated set is "not_legal").
defaultPrintingId?stringId of the default (only) printing.

Traits ​

Each entry of traits (and of a variant's traits):

PropertyTypeDescription
idstringTrait api name, the key into globals.traits.
namestringTrait display name in the catalog locale.
breakpoints?number[]The trait's breakpoints (minUnits of each tier, ascending), baked onto the champion so code without the globals (the archetype selector) can tell which traits a board activates.

Ability ​

The ability object:

PropertyTypeDescription
namestringAbility name in the catalog locale.
descriptionHtml?stringAbility text as HTML.
descriptionPlain?stringAbility text without markup.

Stats ​

The stats object, at 1 star:

PropertyTypeDescription
hp?numberHealth.
damage?numberAttack damage.
armor?numberArmor.
magicResist?numberMagic resist.
attackSpeed?numberAttacks per second.
range?numberAttack range in hexes.
mana?numberMana needed to cast the ability.
initialMana?numberMana the champion starts combat with.

Origin variants ​

Each entry of variants:

PropertyTypeDescription
characterIdstringSource character id of the variant ("DA_18_Lux_Coven").
namestringVariant display name in the catalog locale.
traitsTftTraitRefContract[]The variant's traits, in printed order.

Globals (ctx.globals) ​

The catalog's globals are lookup tables for the values on a champion: the sets, the full trait entries with their breakpoints, the items, the formats, the printing alias map and the live set's planner ids.

PropertyTypeDescription
sets?Record<string, TftCatalogSetEntryContract>Sets by mutator ("TFTSet18").
traits?Record<string, TftCatalogTraitEntryContract>Traits by api name, only those a catalog champion references.
formats?Record<string, TftCatalogFormatEntryContract>Formats by legalities key ("standard").
aliases?Record<string, string>Printing id → card identity id; identity ids map to themselves.
plannerCodes?Record<string, string>Live set's planner id → card identity id, for team-code import.
items?Record<string, TftCatalogItemEntryContract>Items by api name ("TFT_Item_InfinityEdge"), the names Riot boards and team codes carry.

Set entries ​

Each entry of sets:

PropertyTypeDescription
idstringThe set mutator ("TFTSet18"), also the card's setCode.
namestringSet display name in the catalog locale.
numbernumberSet number (18).
isLivebooleanTrue for the set the live client plays.
hasPlannerCodesbooleanTrue when the client's Team Planner carries ids for this set (team codes work).

Trait entries ​

Each entry of traits:

PropertyTypeDescription
idstringTrait api name ("DA_18_Coven").
namestringTrait display name in the catalog locale.
slug?stringReadable URL key from the English name and set (coven-set-18), the same in every locale. Absent on catalogs exported before the field existed.
descriptionHtml?stringTrait text as HTML, with @Var@ placeholders resolved where the source gives values.
descriptionPlain?stringTrait text without markup.
breakpointsTftTraitBreakpointContract[]Breakpoints in ascending minUnits order.
setMutatorstringSet mutator the trait belongs to.
icon?stringTrait icon (PNG URL), absent when the source has none.
unitTeamSlots?numberTeam slots a champion with this (unique) trait takes up; absent means 1.
traitCountBonuses?Record<string, number>Extra trait count a champion with this trait adds, by trait id (Apex Predator: Riftbeast +2).

Trait breakpoints ​

Each entry of a trait's breakpoints:

PropertyTypeDescription
minUnitsnumberFewest units with the trait that reach this breakpoint.
maxUnits?numberMost units this breakpoint covers; the top breakpoint uses a large sentinel (25000).
style?numberSource style tier: 1 bronze, 3 silver, 4 unique, 5 gold, 6 prismatic.
teamSizeBonus?numberExtra max team size while this breakpoint is the reached one (Riftbeast 10: 2).

Item entries ​

Each entry of items:

PropertyTypeDescription
idstringApi name, stable within a set ("TFT_Item_InfinityEdge", "DA_18_EmblemCoven").
namestringItem display name in the catalog locale.
slug?stringReadable URL key from the English name (infinity-edge), the same in every locale and shared by the copies one item keeps under two api names. Absent on catalogs exported before the field existed.
kindTftItemKindWhat the item is: component, completed item, emblem and so on.
icon?stringItem icon (PNG URL).
composition?string[]The two component api names a completed item or emblem is built from.
descriptionHtml?stringItem text as HTML.
descriptionPlain?stringItem text without markup.
grantsTraitId?stringTrait id an emblem grants its holder.
teamSizeBonus?numberExtra max team size the item gives while held (the Tactician's items: 1).
setMutators?string[]Set mutators whose item list references this api name, newest set first. Absent on catalogs exported before the field existed.

Format entries ​

Each entry of formats:

PropertyTypeDescription
idstringFormat id, the key into a card's legalities ("standard").
namestringFormat display name.

Team codes ​

A TFT team is a board of distinct champions, at most one per hex (28). Turny reads and writes two codes for it.

Turny team code (TFT1) ​

The canonical code. It lists each champion by the hash of its card id, sorted, and can add a unit segment for any unit with stars, items or a hex:

text
TFT1.tft:<hash>[,<hash>…][.u:<unit>[,<unit>…]]
unit = <hash>[@<row><col>]~[<stars>][~<item>…]
  • @<row><col> is the hex: row 0 (front) to 3 (back), then column 0 to 6.
  • <stars> is 1 to 4, or empty when unknown.
  • Items are api names (DA_AdaptiveHelm), up to three, in the order the unit holds them.

Units with nothing to add are left out of the unit segment, so a champions-only team is just the champion list. Morgana, Elise and Camille from Set 18, with a 2-star Morgana holding Adaptive Helm on the back-left hex:

text
TFT1.tft:229ca46967cb818f9cec,e1515e1ff433a3ee708c,e3d8b6d025323d452c43.u:e1515e1ff433a3ee708c@30~2~DA_AdaptiveHelm

Team Planner code ​

The code the TFT client's Team Planner shares. It holds up to ten champions and nothing else: no stars, items or hexes.

text
02 <ten 3-digit hex slots> TFTSet<N>

Each slot is a champion's game.plannerCode in hex, and 000 marks an empty slot. The same three champions:

text
024183fd3f5000000000000000000000TFTSet18

The team builder accepts either code on import. A Team Planner code maps back to cards through globals.plannerCodes (keyed by the planner id in decimal), so it only works for a set that has planner ids (hasPlannerCodes on the set entry; every set before 17 has none) and only for the set it names. Copying a Team Planner code drops stars, items and hexes, and a team of more than ten champions only copies as a TFT1 code.

Example card ​

Morgana from Set 18, trimmed to one image:

json
{
  "id": "tft-e1515e1ff433a3ee708c",
  "slug": "morgana-set-18",
  "name": "Morgana",
  "setCode": "TFTSet18",
  "collectible": true,
  "assets": [
    {
      "kind": "card",
      "url": "https://cdn.turny.gg/cards/tft/assets/tft-e1515e1ff433a3ee708c-card-4648d2f98916641f192d53148b2e67bb24479b87ba70d538fcc49d38f3490e9f.webp"
    }
  ],
  "printings": [
    {
      "id": "tftset18-da-18-morgana",
      "setCode": "TFTSet18",
      "assets": [
        {
          "kind": "card",
          "url": "https://cdn.turny.gg/cards/tft/assets/tft-e1515e1ff433a3ee708c-card-4648d2f98916641f192d53148b2e67bb24479b87ba70d538fcc49d38f3490e9f.webp"
        }
      ],
      "metadata": { "characterId": "DA_18_Morgana" }
    }
  ],
  "hasImage": true,
  "game": {
    "characterId": "DA_18_Morgana",
    "setNumber": 18,
    "setMutator": "TFTSet18",
    "cost": 4,
    "traits": [
      { "id": "DA_18_Coven", "name": "Coven", "breakpoints": [3, 4, 5, 7] },
      { "id": "DA_18_Invoker", "name": "Invoker", "breakpoints": [2, 3, 4, 5] }
    ],
    "plannerCode": 1048,
    "ability": {
      "name": "Withering Curse",
      "descriptionHtml": "<span class=\"tft-bright\">Passive:</span> Gain [Omnivamp] Omnivamp.<br><br><span class=\"tft-bright\">Active:</span> Fire a dark blast at [NumEnemiesCursed] nearby enemies, …",
      "descriptionPlain": "Passive: Gain [Omnivamp] Omnivamp.\n\nActive: Fire a dark blast at [NumEnemiesCursed] nearby enemies, …"
    },
    "stats": {
      "hp": 1100,
      "damage": 45,
      "armor": 60,
      "magicResist": 60,
      "attackSpeed": 0.75,
      "range": 2,
      "mana": 65,
      "initialMana": 0
    },
    "legalities": { "standard": "legal" },
    "defaultPrintingId": "tftset18-da-18-morgana"
  }
}

Ability text keeps the source's bracketed placeholders, such as [MagicDamageCalc1], where the game fills in a number that scales with star level.

Turny.gg documentation