@seroh/roll
Version:
An RPG dice-rolling library with a variety of built-in roll mechanics.
18 lines • 569 B
TypeScript
import { Randomizer } from "../randomizer/Randomizer";
import { Mechanic } from "./Mechanic";
export declare class RerollMechanic extends Mechanic {
readonly options: RerollMechanic.Options;
constructor(options: RerollMechanic.Options);
do(min: number, max: number, randomizer: Randomizer): {
result: number;
rolls: number[];
};
private validateOptions;
}
export declare namespace RerollMechanic {
interface Options {
target: number[];
maxRerollCount?: number;
}
}
//# sourceMappingURL=RerollMechanic.d.ts.map