diff options
| author | 2025-09-12 18:11:33 +0800 | |
|---|---|---|
| committer | 2025-09-12 18:11:33 +0800 | |
| commit | 899ca820e34b1b62190e88da71cf734295974a19 (patch) | |
| tree | 2164917914cb8871d59d78db6305fcc5d14cd99a /src/types.rs | |
| parent | 183e39d9ebfe6e48e5ce666dee36b5347d47f53e (diff) | |
| download | OneRoll-899ca820e34b1b62190e88da71cf734295974a19.tar.gz OneRoll-899ca820e34b1b62190e88da71cf734295974a19.zip | |
feat: enhance dice modifiers with new options for aliasing, sorting, and counting
Diffstat (limited to 'src/types.rs')
| -rw-r--r-- | src/types.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs index 6f4c54c..aad0080 100644 --- a/src/types.rs +++ b/src/types.rs @@ -20,13 +20,18 @@ pub struct DiceRoll { #[derive(Debug, Clone, PartialEq)] pub enum DiceModifier { Explode, // ! + ExplodeAlias, // e (alias of !) + ExplodeKeepHigh(i32), // KX == explode then keep high X Reroll(i32), // rX RerollOnce(i32), // roX + KeepAlias(i32), // kX == khX KeepHigh(i32), // khX KeepLow(i32), // klX DropHigh(i32), // dhX DropLow(i32), // dlX Unique, // u + Sort, // s (sort results) + Count(i32), // cV (count value V) } |
