[Feature] Item Resource Support (#328)

* Initial

* Resource setup finished

* Fixed so that costs can be used

* Corrected standard resources

* Actions can only use item resources from their parent item

* Fixed up dice

* Fixed resource dice positioning

* Fixed parsing of resource.max

* Fixed styling on settings tab

* Added manual input for Dice Resources

* Lightmode fixes

* Fixed Feature spellcasting modifier

* Bugfix for item input to resourceDiceDialog

* Item fix for TokenInput

* PR Fixes
This commit is contained in:
WBHarry 2025-07-14 01:12:32 +02:00 committed by GitHub
parent eefa116d9a
commit 4be3e6179c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 972 additions and 329 deletions

View file

@ -387,6 +387,10 @@
"OwnershipSelection": {
"title": "Ownership Selection - {name}",
"default": "Default Ownership"
},
"ResourceDice": {
"title": "{name} Resource",
"rerollDice": "Reroll Dice"
}
},
@ -632,6 +636,10 @@
"abbreviation": "AS"
}
},
"ItemResourceType": {
"simple": "Simple",
"diceValue": "Dice Value"
},
"Range": {
"self": {
"name": "Self",
@ -1068,6 +1076,10 @@
"shortrest": "Short Rest",
"longrest": "Long Rest"
},
"Resource": {
"single": "Resource",
"plural": "Resources"
},
"Tabs": {
"details": "Details",
"attack": "Attack",
@ -1154,6 +1166,17 @@
"value": "Value"
},
"ITEMS": {
"FIELDS": {
"resource": {
"amount": { "label": "Amount" },
"dieFaces": { "label": "Die Faces" },
"icon": { "label": "Icon" },
"max": { "label": "Max" },
"recovery": { "label": "Recovery" },
"type": { "label": "Type" },
"value": { "label": "Value" }
}
},
"Armor": {
"baseScore": "Base Score",
"baseThresholds": {
@ -1331,8 +1354,8 @@
},
"UI": {
"Chat": {
"dualityRoll": {
"abilityCheckTitle": "{ability} Check"
"applyEffect": {
"title": "Apply Effects - {name}"
},
"attackRoll": {
"title": "Attack - {attack}",
@ -1348,25 +1371,28 @@
"hitTarget": "Hit Targets",
"selectedTarget": "Selected"
},
"applyEffect": {
"title": "Apply Effects - {name}"
},
"healingRoll": {
"title": "Heal - {healing}",
"heal": "Heal"
},
"deathMove": {
"title": "Death Move"
},
"domainCard": {
"title": "Domain Card"
},
"dualityRoll": {
"abilityCheckTitle": "{ability} Check"
},
"featureTitle": "Class Feature",
"foundationCard": {
"ancestryTitle": "Ancestry Card",
"communityTitle": "Community Card",
"subclassFeatureTitle": "Subclass Feature"
},
"featureTitle": "Class Feature"
"healingRoll": {
"title": "Heal - {healing}",
"heal": "Heal"
},
"resourceRoll": {
"playerMessage": "{user} rerolled their {name}"
}
},
"Notifications": {
"adversaryMissing": "The linked adversary doesn't exist in the world.",