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.
npm install relicalc
or
yarn add relicalc
The full documentation is available here.
1: Gen 1-2 support is less tested.