UNPKG

@seroh/roll

Version:

An RPG dice-rolling library with a variety of built-in roll mechanics.

7 lines 217 B
export class SingleRollMechanic { do(min, max, randomizer) { const result = randomizer.generate(min, max); return { result, rolls: [result] }; } } //# sourceMappingURL=SingleRollMechanic.js.map