[Feature] RollTable Improvements (#1552)

* Initial - Branch Test

* reorganized path for better usage

* something to mess with

* registration things

* .

* root-template error

* pushing in for the day

* hook?

* help?

* .

* implementation initial

* updated comment

* overcomplicated it

* .

* Added Formula select to view mode

* .

* Prettied up roll-results template

* Removed SRD table descriptions

* Improved draw result description css

* Fallback for default dark dice

* .

---------

Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
This commit is contained in:
WBHarry 2026-01-24 20:26:37 +01:00 committed by GitHub
parent fdb6412c8c
commit a78ef1f70c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 660 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{
"name": "Consumables",
"img": "icons/consumables/potions/bottle-corked-red.webp",
"description": "<p>To generate a random consumable, choose a rarity, roll the designated dice, and match the total to the item in the table:</p><ul><li><p>Common: 1d12 or 2d12</p></li><li><p>Uncommon: 2d12 or 3d12</p></li><li><p>Rare: 3d12 or 4d12</p></li><li><p>Legendary: 4d12 or 5d12</p></li></ul>",
"description": "",
"results": [
{
"type": "document",
@ -1511,8 +1511,27 @@
"default": 0,
"Bgvu4A6AMkRFOTGR": 3
},
"flags": {},
"formula": "1d60",
"flags": {
"daggerheart": {
"activeAltFormula": "",
"formulaName": "Common",
"altFormula": {
"uoUn5fRTUkyg6U2G": {
"name": "Uncommon",
"formula": "3d12"
},
"FGxM2yoxUUUd9Eov": {
"name": "Rare",
"formula": "4d12"
},
"HZ2hRBxu0k8IW0jC": {
"name": "Legendary",
"formula": "5d12"
}
}
}
},
"formula": "2d12",
"_id": "tF04P02yVN1YDVel",
"sort": 300000,
"_key": "!tables!tF04P02yVN1YDVel"