1.0.0 • Published 7 years ago
hjdice v1.0.0
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
};
1.0.0
7 years ago