-
-
Notifications
You must be signed in to change notification settings - Fork 67
Description
I'm trying to build a UI for the dice output that shows the matching die image (ie: d4, d20, ect) that corresponds to the die roll. However, the RollResult class structure / output doesn't contain that information, just the results after the roll calculation.
I would love an additional property added to the RollResult class that shows the die type used to generate that roll result. ie:
"rolls": [{
"sides": d20, // or even just 20 <-----
"calculationValue": 4,
"initialValue": 4,
"modifierFlags": "",
"modifiers": [],
"type": "result",
"useInTotal": true,
"value": 4
// ... ect
}]
I've tried trying to customize the RollResult class to capture this, but I am having a hard time... Honestly, TypeScript is well out of my wheelhouse... If anyone has a suggestion so I can implement this on my own, I am all ears!
Thanks in advance. Please let me know if you need more info from me :)