0.1.0 • Published 2 years ago

@auroratide/pokemon-types v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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,
    // ...
}