You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Showing the total works great, it'd be nice to also be able to show the individual results, or a populated expression: 4d10dl2 + 5 would give you [1*,7,4*,5] + 5.
Maybe a renderedExpression property on Result?
I tried looking at this, but typescript/javascript are not my forte, and I got lost in the AST/Expressions.
Really cool project, even cooler when I saw the 5th ed e-tools you've put together!
The text was updated successfully, but these errors were encountered:
Thanks for the feedback! That makes a lot of sense. There's currently an empty printer.ts file that I was going to use for rendering an expression! I'll see when I can get some time to look into it.
This is now in 1.4.0 (52d958f), which is available in NPM. Hopefully it works as you expect! It will certainly work for simple expressions, but lengthier dice rolls will probably get complex rather quickly.
Showing the total works great, it'd be nice to also be able to show the individual results, or a populated expression:
4d10dl2 + 5
would give you[1*,7,4*,5] + 5
.Maybe a renderedExpression property on
Result
?I tried looking at this, but typescript/javascript are not my forte, and I got lost in the AST/Expressions.
Really cool project, even cooler when I saw the 5th ed e-tools you've put together!
The text was updated successfully, but these errors were encountered: