Reference · Rolls and exact odds
LoadedPresettype
Loaded dice, kept in one place and in plain sight. Korokoro's own dice are
fair. These are not, they say so, and nothing here can make one pass for a
fair die: a loaded die's weights are part of its name (d6{6:3}), of its
spec, of every roll it makes and of every link to one.
Import it
import type { LoadedPreset } from "@johnmorrisdotca/korokoro";
Definition
type LoadedPreset = {
id: string;
name: string;
notation: string;
says: string;
};
Members
| Name | Type | Description |
|---|---|---|
id | string | A short id, for code and links. |
name | string | What the die is called. |
notation | string | The dice, as notation. |
says | string | What it does, in a line. |
Examples
import type { LoadedPreset } from "@johnmorrisdotca/korokoro";
import { LOADED_PRESETS } from "@johnmorrisdotca/korokoro";
const value: LoadedPreset = LOADED_PRESETS[0]!;
console.log(value.notation);1d6{6:3}What it prints (run when this page was built)