@auroratide/pokemon-types
v0.1.0
Published
Calculate vulnerabilities and resistances of pokemon types, including three or more types
Downloads
9
Readme
Pokemon Types
A very simple pokemon types calculator. What's nice is this lets you see the vulnerabilities and resistances of hypothetical pokemon with three or more types.
import { defensiveMultipliers } from '@auroratide/pokemon-types'
defensiveMultipliers(['fire'])
defensiveMultipliers(['normal', 'ghost'])
defensiveMultipliers(['flying', 'rock', 'bug'])
This gives back a map of types to the respective damage multipler.
const result = {
normal: 1,
fighting: 2,
flying: 0.5,
// ...
}