mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 00:53:50 -04:00
prepare for grouped rolls
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user