@dice-roller/rpg-dice-roller
Version:
An advanced JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.
20 lines (19 loc) • 584 B
TypeScript
export default DropModifier;
/**
* A `DropModifier` will "drop" (Remove from total calculations) dice from a roll.
*
* @see {@link KeepModifier} for the opposite of this modifier
*
* @extends KeepModifier
*/
declare class DropModifier extends KeepModifier {
/**
* Determine the start and end (end exclusive) range of rolls to drop.
*
* @param {RollResults} _results The results to drop from
*
* @returns {number[]} The min / max range to drop
*/
rangeToDrop(_results: RollResults): number[];
}
import KeepModifier from "./KeepModifier.js";