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, liketft-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:
| Property | Type | Description |
|---|---|---|
id | string | Catalog id of the card identity ("01DE012" in LoR, "pikachu-ex--1f29b66b68bc" in Pokémon). |
slug? | string | The 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). |
name | string | Display name in the catalog locale. |
setCode | string | Set of the card, or of its default printing ("set1", "sv2", "OGN"). |
collectible? | boolean | False 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? | number | Lean 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? | string | Per-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? | boolean | True 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? | boolean | False 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? | TGameData | Game-specific fields; see the per-game *CardGameData type. |
Each entry of languages (CardLanguageEntry):
| Property | Type | Description |
|---|---|---|
locale | string | Catalog locale ("zh-tw", "de_de"), not an app locale. |
status | CardLanguageStatus | Where the text comes from: official (printed) or unofficial (a translation). |
Values of a language entry's status (CardLanguageStatus):
| Member | Value | Description |
|---|---|---|
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):
| Property | Type | Description |
|---|---|---|
id | string | Printing id; deck refs use it ("sv2-11" for Pokémon, "ogn-030-298" for Riftbound). |
setCode | string | Set the printing belongs to ("sv2", "OGN"). |
number? | string | Collector number within the set. |
language? | string | Language of the printing, when it is not the catalog's own. |
releaseDate? | string | Release 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? | JsonObject | Extra per-printing data (rarity, artist, store ids); game-specific. |
Each entry of a printing's variants:
| Property | Type | Description |
|---|---|---|
id | string | Variant id, usually <printing id>:<kind> ("ogn-030-298:normal"). |
kind? | string | Treatment kind ("normal", "foil", "alternate_art"); values are per game. |
label? | string | Display label, when the kind alone is not enough. |
metadata? | JsonObject | Extra per-variant data; game-specific. |
Each entry of assets (on the card and on each printing):
| Property | Type | Description |
|---|---|---|
kind | CardAssetKind | What the image shows: "card" (framed render), "full" (full art), "icon", "banner", "slice", "portrait", … |
url | string | Image URL. |
format? | CardAssetFormat | Image format ("webp"), when known. |
width? | number | Width in pixels, when known. |
height? | number | Height in pixels, when known. |
metadata? | JsonObject | Extra 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.
| Property | Type | Description |
|---|---|---|
characterId | string | Source character id ("DA_Cinderling18"), stable within a set; the identity key input. |
setNumber | number | Set number (18). |
setMutator | string | Set mutator the card comes from ("TFTSet18"). |
cost | number | Shop cost, 1 to 5 (a few special units cost more). |
traits | TftTraitRefContract[] | Traits in printed order. |
plannerCode? | number | The 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? | string | Source 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? | TftChampionAbilityContract | The champion's ability. |
stats? | TftChampionStatsContract | Combat stats at 1 star. |
variants? | TftChampionVariantContract[] | Origin variants sharing this card's planner id (see TftChampionVariantContract). |
legalities? | TftCardLegalities | Legality per format ({ standard: "legal" }; a rotated set is "not_legal"). |
defaultPrintingId? | string | Id of the default (only) printing. |
Traits
Each entry of traits (and of a variant's traits):
| Property | Type | Description |
|---|---|---|
id | string | Trait api name, the key into globals.traits. |
name | string | Trait 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:
| Property | Type | Description |
|---|---|---|
name | string | Ability name in the catalog locale. |
descriptionHtml? | string | Ability text as HTML. |
descriptionPlain? | string | Ability text without markup. |
Stats
The stats object, at 1 star:
| Property | Type | Description |
|---|---|---|
hp? | number | Health. |
damage? | number | Attack damage. |
armor? | number | Armor. |
magicResist? | number | Magic resist. |
attackSpeed? | number | Attacks per second. |
range? | number | Attack range in hexes. |
mana? | number | Mana needed to cast the ability. |
initialMana? | number | Mana the champion starts combat with. |
Origin variants
Each entry of variants:
| Property | Type | Description |
|---|---|---|
characterId | string | Source character id of the variant ("DA_18_Lux_Coven"). |
name | string | Variant display name in the catalog locale. |
traits | TftTraitRefContract[] | 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.
| Property | Type | Description |
|---|---|---|
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:
| Property | Type | Description |
|---|---|---|
id | string | The set mutator ("TFTSet18"), also the card's setCode. |
name | string | Set display name in the catalog locale. |
number | number | Set number (18). |
isLive | boolean | True for the set the live client plays. |
hasPlannerCodes | boolean | True when the client's Team Planner carries ids for this set (team codes work). |
Trait entries
Each entry of traits:
| Property | Type | Description |
|---|---|---|
id | string | Trait api name ("DA_18_Coven"). |
name | string | Trait display name in the catalog locale. |
slug? | string | Readable 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? | string | Trait text as HTML, with @Var@ placeholders resolved where the source gives values. |
descriptionPlain? | string | Trait text without markup. |
breakpoints | TftTraitBreakpointContract[] | Breakpoints in ascending minUnits order. |
setMutator | string | Set mutator the trait belongs to. |
icon? | string | Trait icon (PNG URL), absent when the source has none. |
unitTeamSlots? | number | Team 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:
| Property | Type | Description |
|---|---|---|
minUnits | number | Fewest units with the trait that reach this breakpoint. |
maxUnits? | number | Most units this breakpoint covers; the top breakpoint uses a large sentinel (25000). |
style? | number | Source style tier: 1 bronze, 3 silver, 4 unique, 5 gold, 6 prismatic. |
teamSizeBonus? | number | Extra max team size while this breakpoint is the reached one (Riftbeast 10: 2). |
Item entries
Each entry of items:
| Property | Type | Description |
|---|---|---|
id | string | Api name, stable within a set ("TFT_Item_InfinityEdge", "DA_18_EmblemCoven"). |
name | string | Item display name in the catalog locale. |
slug? | string | Readable 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. |
kind | TftItemKind | What the item is: component, completed item, emblem and so on. |
icon? | string | Item icon (PNG URL). |
composition? | string[] | The two component api names a completed item or emblem is built from. |
descriptionHtml? | string | Item text as HTML. |
descriptionPlain? | string | Item text without markup. |
grantsTraitId? | string | Trait id an emblem grants its holder. |
teamSizeBonus? | number | Extra 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:
| Property | Type | Description |
|---|---|---|
id | string | Format id, the key into a card's legalities ("standard"). |
name | string | Format 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: row0(front) to3(back), then column0to6.<stars>is1to4, 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_AdaptiveHelmTeam 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
024183fd3f5000000000000000000000TFTSet18The 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.