Formulas

thetowersdk/mechanics exports enemy scaling, ultimate weapon timing, lab and workshop costs, Effective Paths planners, resource-drop helpers, and more — callable formulas for your tools.

Effective Paths

import {
  planEffectiveDamagePath,
  ZERO_EFFECTIVE_DAMAGE_LEVELS,
  zeroEffectiveDamageConfig,
} from 'thetowersdk/mechanics'

const plan = planEffectiveDamagePath({
  config: zeroEffectiveDamageConfig(),
  levels: ZERO_EFFECTIVE_DAMAGE_LEVELS,
  variant: 'lab-time',
  steps: 10,
})

plan.steps
plan.excluded

Uptime-style Sync

Combine UW cooldowns (for example Death Wave from stones) with in-game bot catalog timing (Golden Bot duration / cooldown) to answer sync questions.

Live Formula Examples →