npm.io
1.1.0 • Published 7 years ago

@emersonlaurentino/rpg

Licence
MIT
Version
1.1.0
Deps
1
Size
1 kB
Vulns
0
Weekly
0

RPG

Set of tools for RPG games

Installation

npm install @emersonlaurentino/rpg

Usage

diceRoller
import { diceRoller } from '@emersonlaurentino/rpg'

const dice2d10 = diceRoller(2, 10);

console.log(dice2d10) // output: { result: 6, rolls: [4, 2] }