Reference · Rolls and exact odds
presetSpecfunction
A preset's dice, as a spec.
Import it
import { presetSpec } from "@johnmorrisdotca/korokoro";
Definition
function presetSpec(preset: Preset): RollSpec
Parameters
| Name | Type | Description |
|---|---|---|
preset | Preset | The game preset whose dice and reading are used. |
Returns
RollSpec
A preset's dice, as a spec.
Examples
import { presetSpec } from "@johnmorrisdotca/korokoro";
import { formatNotation, getPreset } from "@johnmorrisdotca/korokoro";
const preset = getPreset("cho-han")!;
console.log(formatNotation(presetSpec(preset)));2d6What it prints (run when this page was built)