Pokemon GO IV Calculator
Usage:
const ivCalculator = ; //Ivysaur with CP 608, HP of 69, and dust-upgrade-cost of 1600const result = ivCalculator; /** Gives:{ grade: { minGrade: { letter: 'F', preciseLetter: 'F' }, maxGrade: { letter: 'D', preciseLetter: 'D' }, averageGrade: { letter: 'F', preciseLetter: 'F' }, explanation: 'Between D - F' }, ivs: [ { attackIV: 15, defenseIV: 11, staminaIV: 0, level: 27, perfection: 0.57 }, { attackIV: 14, defenseIV: 13, staminaIV: 0, level: 27, perfection: 0.6 }, { attackIV: 13, defenseIV: 15, staminaIV: 0, level: 27, perfection: 0.62 } ] } */ const niceTry = ivCalculator /** Gives{ error: 'Could not find pokemon: ivysaurus' }*/
Notes
Pokemon can be any case (upper/lower/mixed), OR you can use pokedex id (e.g. Ivysaur == 2)
There's an optional fifth argument: Boolean : neverUpgraded. If you've never upgraded the pokemon, pass true
. This reduces the possible levels the pokemon could be.
Credit
Inspired by :
https://pokeassistant.com/main/ivcalculator
Who gave original credit to :