Skip to content
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

Support adding constants to dice expressions #6

Closed
brentleyjones opened this issue Jul 13, 2015 · 0 comments
Closed

Support adding constants to dice expressions #6

brentleyjones opened this issue Jul 13, 2015 · 0 comments
Assignees

Comments

@brentleyjones
Copy link
Member

A common use case for dice notation is the ability to add constants to the result of dice rolls. Expressions (see #3) should be extended to support addition of constants to support this.

To get this in one go we should support the concept of a "named constant". An example of this is 2d6 + 1d4 per level (or 2d6 + (LEVEL)d4), where level evaluates to the same constant wherever it's used in the expression. (Moved to #25)

@brentleyjones brentleyjones changed the title Support adding constants to rolls Support adding constants to dice expressions Jul 13, 2015
@brentleyjones brentleyjones self-assigned this Jul 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant