Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bukinoshita/pokemon-f

Algorithm to calculate `f` on capture pokemon method.
https://github.com/bukinoshita/pokemon-f

algorithm capture javascript node pokemon

Last synced: 20 days ago
JSON representation

Algorithm to calculate `f` on capture pokemon method.

Awesome Lists containing this project

README

        

# pokemon-f [![Build Status](https://travis-ci.org/bukinoshita/pokemon-f.svg?branch=master)](https://travis-ci.org/bukinoshita/pokemon-f)

> Algorithm to calculate `f` on capture pokemon method

## Install

```
$ yarn add pokemon-f
```

## Usage

```js
import { pokemonF } from 'pokemon-f'

pokemonF(35, 'pokeball', 23)
// => 129
```

## API

### pokemonF(hpMax, pokeball, hpCurrent)

#### hpMax

Type: `number`

Required

Pokemon HPMax

#### pokeball

Type: `string`

Options: `pokeball`, `greatball`, `ultraball` and `safariball`

Required

Pokeball's name

#### hpCurrent

Type: `number`

Required

Pokemon current HP

## Related

- [pokemon-game](https://github.com/bukinoshita/pokemon-game) — Pokemon game — Get 'em all
- [pokedex-api](https://github.com/bukinoshita/pokedex-api) — Pokedex API
- [pokemon-catch-probability](https://github.com/bukinoshita/pokemon-catch-probability) — Check probabilty to catch a pokemon
- [get-pokeball](https://github.com/bukinoshita/get-pokeball) — Get pokeball information
- [catch-pokemon](https://github.com/bukinoshita/catch-pokemon) — Algorithm to catch a pokemon
- [pokemon-capture-quote](https://github.com/bukinoshita/pokemon-capture-quote) — Pokemon capture quote
- [pokeball-shake](https://github.com/bukinoshita/pokeball-shake) — Algorithm to determine how many times pokeball shakes

## License

MIT © [Bu Kinoshita](https://bukinoshita.com)