Skip to content

Auroratide/pokemon-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published