mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03: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 { 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 { loggingEnabled } from 'artigen/utils/logFlag.ts';
|
||||||
import { addToRange, gtrAddToRange, ltAddToRange } from 'artigen/utils/rangeAdder.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',
|
Drop: 'd',
|
||||||
DropLow: 'dl',
|
DropLow: 'dl',
|
||||||
DropHigh: 'dh',
|
DropHigh: 'dh',
|
||||||
Keep: 'k',
|
Keep: 'k',
|
||||||
KeepLow: 'kl',
|
KeepLow: 'kl',
|
||||||
KeepHigh: 'kh',
|
KeepHigh: 'kh',
|
||||||
|
SuccessLt: '<',
|
||||||
|
SuccessGtr: '>',
|
||||||
|
SuccessEqu: '=',
|
||||||
|
Fail: 'f',
|
||||||
|
FailLt: 'f<',
|
||||||
|
FailGtr: 'f>',
|
||||||
|
FailEqu: 'f=',
|
||||||
|
});
|
||||||
|
|
||||||
|
export const DiceOptions = Object.freeze({
|
||||||
|
...GroupOptions,
|
||||||
Reroll: 'r',
|
Reroll: 'r',
|
||||||
RerollLt: 'r<',
|
RerollLt: 'r<',
|
||||||
RerollGtr: 'r>',
|
RerollGtr: 'r>',
|
||||||
@@ -42,13 +53,6 @@ export const DiceOptions = Object.freeze({
|
|||||||
Sort: 's',
|
Sort: 's',
|
||||||
SortAsc: 'sa',
|
SortAsc: 'sa',
|
||||||
SortDesc: 'sd',
|
SortDesc: 'sd',
|
||||||
SuccessLt: '<',
|
|
||||||
SuccessGtr: '>',
|
|
||||||
SuccessEqu: '=',
|
|
||||||
Fail: 'f',
|
|
||||||
FailLt: 'f<',
|
|
||||||
FailGtr: 'f>',
|
|
||||||
FailEqu: 'f=',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Should be ordered such that 'mt' will be encountered before 'm'
|
// Should be ordered such that 'mt' will be encountered before 'm'
|
||||||
Reference in New Issue
Block a user