-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix min/max setting. #306
Fix min/max setting. #306
Conversation
I understand this was trying to fix an issue with min, max rollers, but it would break a feature to allow you to specify an arbitrary list of numbers. I have been thinking about how to fix this and I think I prefer changing the min/max specification to |
Ah, I understand, that makes a lot of sense. 5-15 makes a lot of sense (this is actually what I tried originally before realizing I was trying the wrong thing. I could also see Am I editing in the correct place? I can change my PR later tonight to implement the |
This looks great, I will pull it down tomorrow and check it out in depth, thank you!🙏 |
I spent a lot of time at work thinking about how I would handle this kind of project (instead of working on banking software lol) and I think I settled on. XdYm[values]±Z Where X is the number of dice. To parse it we split on any ± operators giving us basic math to do or dice equations to parse. so if you wanted to roll 2d6 plus 1d8 that only explodes on a 7 you'd do Dice 1: 2d6 (no need to dive into this, its easy to handle) Our die class could look like Anyways, all that to say that I think I like the idea of letter[options] as it makes parsing easier and allows for the addition of other things in the future easier. |
Pull Request Description
Addresses Issue #304
Changes Proposed
Related Issues
Fixes #304
Checklist
Screenshots (if applicable)
Additional Notes
BEGIN_COMMIT_OVERRIDE
feat: New min/max syntax:
dice: 1d[5-10]
END_COMMIT_OVERRIDE