prepare for grouped rolls
This commit is contained in:
parent
2867e5f557
commit
5ee02241a8
|
@ -4,7 +4,7 @@ import { RollConf } from 'artigen/dice/dice.d.ts';
|
|||
|
||||
import { getLoopCount, loopCountCheck } from 'artigen/managers/loopManager.ts';
|
||||
|
||||
import { DiceOptions, NumberlessDiceOptions } from 'artigen/dice/diceOptions.ts';
|
||||
import { DiceOptions, NumberlessDiceOptions } from './rollOptions.ts';
|
||||
|
||||
import { loggingEnabled } from 'artigen/utils/logFlag.ts';
|
||||
import { addToRange, gtrAddToRange, ltAddToRange } from 'artigen/utils/rangeAdder.ts';
|
||||
|
|
|
@ -1,10 +1,21 @@
|
|||
export const DiceOptions = Object.freeze({
|
||||
export const GroupOptions = Object.freeze({
|
||||
Drop: 'd',
|
||||
DropLow: 'dl',
|
||||
DropHigh: 'dh',
|
||||
Keep: 'k',
|
||||
KeepLow: 'kl',
|
||||
KeepHigh: 'kh',
|
||||
SuccessLt: '<',
|
||||
SuccessGtr: '>',
|
||||
SuccessEqu: '=',
|
||||
Fail: 'f',
|
||||
FailLt: 'f<',
|
||||
FailGtr: 'f>',
|
||||
FailEqu: 'f=',
|
||||
});
|
||||
|
||||
export const DiceOptions = Object.freeze({
|
||||
...GroupOptions,
|
||||
Reroll: 'r',
|
||||
RerollLt: 'r<',
|
||||
RerollGtr: 'r>',
|
||||
|
@ -42,13 +53,6 @@ export const DiceOptions = Object.freeze({
|
|||
Sort: 's',
|
||||
SortAsc: 'sa',
|
||||
SortDesc: 'sd',
|
||||
SuccessLt: '<',
|
||||
SuccessGtr: '>',
|
||||
SuccessEqu: '=',
|
||||
Fail: 'f',
|
||||
FailLt: 'f<',
|
||||
FailGtr: 'f>',
|
||||
FailEqu: 'f=',
|
||||
});
|
||||
|
||||
// Should be ordered such that 'mt' will be encountered before 'm'
|
Loading…
Reference in New Issue