@planarally/dice
Version:
3D dice rolling functionality for babylon.js.
19 lines (18 loc) • 702 B
JavaScript
export var DxSegmentType;
(function (DxSegmentType) {
DxSegmentType[DxSegmentType["Die"] = 0] = "Die";
DxSegmentType[DxSegmentType["Literal"] = 1] = "Literal";
DxSegmentType[DxSegmentType["Operator"] = 2] = "Operator";
})(DxSegmentType || (DxSegmentType = {}));
const addOptions = ["d4", "d6", "d8", "d10", "d12", "d20", "d100"];
const limitOperatorOptions = ["keep", "drop", "min", "max"];
const rerollOperatorOptions = ["inf", "once", "add", "explode"];
const selectorOptions = ["=", ">", "<", "highest", "lowest"];
const symbolOptions = ["+", "-"];
export const DxConfig = {
addOptions,
limitOperatorOptions,
rerollOperatorOptions,
selectorOptions,
symbolOptions,
};