@auroratide/pokemon-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i @auroratide/pokemon-types

Weekly Downloads

1

Version

0.1.0

License

ISC

Unpacked Size

10.1 kB

Total Files

6

Last publish

Collaborators

  • auroratide