Game Data

Typed catalogs for labs, workshop, modules, cards, relics, bots, guardians, ultimate weapons, vault nodes, perks, battle conditions, tiers, milestones, and the glossary.

Example

import { LAB_CATALOG } from 'thetowersdk/data'

// Sum every level's coin cost for one lab
const costToMax = (lab) =>
  lab.levels.reduce((sum, level) => sum + level.cost, 0)

// Rank labs by total coin cost
const priciest = LAB_CATALOG
  .map((lab) => ({ name: lab.name, total: costToMax(lab) }))
  .sort((a, b) => b.total - a.total)[0]

Counts on the home page are read from the package you installed — they move when the game data updates.

Formulas →