Skip to content

@dice-roller/rpg-dice-roller / modifiers / dropHandler

Variable: dropHandler ​

const dropHandler: ModifierHandler<DropNode>

Defined in: src/modifiers/handlers/drop.ts:15

d, dl, dh: drops the lowest / highest qty items (flag drop). d defaults to lowest.

Like keep, it looks at every item, including those already dropped. Of two equal items, the earlier counts as the lower one. Dropping more items than there are drops them all.

On a group with a single expression it drops dice from every pool in it; otherwise it drops members by their totals.

MIT Licensed · Credits