Reference · Rolls and exact odds
LOADED_PRESETSconstant
Three loaded dice to try, each an old trick with a long record.
Import it
import { LOADED_PRESETS } from "@johnmorrisdotca/korokoro";
Definition
const LOADED_PRESETS: readonly LoadedPreset[] = [
{
id: "optimist",
name: "The Optimist",
notation: "1d6{6:3}",
says: "A die weighted towards its six, which it shows three times in eight. It believes in you more than the odds do.",
},
{
id: "flat",
name: "The Six-Ace Flat",
notation: "1d6{1:2,6:2}",
says: "Shaved a little thin between the 1 and the 6, so those two faces land twice as often as the rest. The oldest job a file ever did.",
},
{
id: "odd-couple",
name: "The Odd Couple",
notation: "2d6{2:0,4:0,6:0}",
says: "Two dice with no even faces. Between them they have never made a seven, and they are not going to start now.",
},
]
Examples
import { LOADED_PRESETS } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(LOADED_PRESETS));[ '0', '1', '2' ]What it prints (run when this page was built)