Skip to content

v1.4.1

Latest

Choose a tag to compare

@doshidak doshidak released this 13 Jul 08:08
 Powering showdex · v1.4.1   Patches @smogon/calc · v0.11.02681f36 

What's New

  • Synced upstream smogon/damage-calc2681f36 (#7), pulling in 12 commits.
  • Fixed Pokémon Champions stat boosts (#831) — getModifiedStat() was gated on gen.num < 3, which also matched Champions (gen.num === 0), so Champions was applying the GSC stat-boost table ([1, 1.5, 2, 2.5, 3, 3.5, 4]) instead of the modern one. Affected every boosted stat in Champions on Showdex v1.4.0.
  • Gens 1 & 2: EVs & DV importing are now supported (#797) — calcStatRBY() derives stat exp from EVs instead of hardcoding the 63 term.
  • Intrepid Sword & Dauntless Shield are now toggleable (#817).
  • Gens 2 & 4: Normal-boosting items now boost Struggle (#828).
  • Gen 4: Metronome (the item) is now supported (#826).
  • Fixed Analytic.

Tooling

  • Fixed the Tests workflow, which had been failing on every PR.
    • It installed with npm on Node 18 against a repo that's since moved to pnpm + Node 24, so postinstall's npx tsc fetched an unrelated tsc@2.0.4 package from the registry & died.
    • Now installs both the root & the calc subpackage (which carries typescript) with pnpm, then compiles the patched calc explicitly.