Reference · Rolls and exact odds
playsByNewRulesfunction
Whether a kind of dice is played by a rule added in 1.7.0, one that changes
what it can total: a reroll or an explosion at a comparison, compounding or
penetrating dice, min or max, or counted successes. Marks (cs, cf)
and a sort change nothing about the total and are not among them.
Import it
import { playsByNewRules } from "@johnmorrisdotca/korokoro";
Definition
function playsByNewRules(g: DiceGroup): boolean
Parameters
| Name | Type | Description |
|---|---|---|
g | DiceGroup | One kind of dice and its rules. |
Returns
boolean
Whether a kind of dice is played by a rule added in 1.7.0, one that changes what it can total: a reroll or an explosion at a comparison, compounding or penetrating dice, min or max, or counted successes. Marks (cs, cf) and a sort change nothing about the total and are not among them.
Examples
import { playsByNewRules } from "@johnmorrisdotca/korokoro";
import { parseNotation } from "@johnmorrisdotca/korokoro";
console.log(playsByNewRules(parseNotation("3d6>=5")!));trueWhat it prints (run when this page was built)