Skip to content

Corvimae/relicalc

Repository files navigation

relicalc

CI npm

dr relicanth, phd in mathematics

relicalc is Ranger's Pokémon math calculation code as a standalone Node (12+) library. It has all the math-y stuff from Ranger without any of that pesky UI nonsense, including:

  • Calculating possible damage rolls for a move across all possible IVs.
  • Determining possible IVs given the value of a stat at previous levels.
  • Calculating experience gained from an encounter.
  • Determining possible Hidden Power base damage and type based on possible IVs.
  • Building combined type defensive typing tables.

...for all generations including Let's Go1.

Logo by @limeadenectar.

Installation

npm install relicalc

or

yarn add relicalc

Usage

The full documentation is available here.

License

GNU GPU v3


1: Gen 1-2 support is less tested.