hjdice
v1.0.0
Published
a dice for trpg game
Downloads
3
Readme
hjdice
a dice for trpg game
Usage
> npm install hjdice
import Dice from 'hjdice';
// or
var Dice = require('hjdice')
var dice = new hjdice();
dice.roll(); // 1-6
dice.getDesc(); // 1d6 + 0
new Dice([config])
config
the config for dice
the default is
var _config = {
dice_amount: 1,
offset: 0,
dice_faces: 6
};