Closed Zorgatone closed 1 year ago
As a side note, I also tried to customize the text shown when rendered, instead of "Spellcasting" "Incantesimi", but I could't get it to work even with the property name "spells"
I tried both with the "display" attribute and "heading" attribute but none worked.
{
"type": "spells",
"id": "ea084ae8a9ca",
"display": "Incantesimi",
"properties": [
"spells"
],
"conditioned": true,
"dice": true
}
{
"type": "spells",
"id": "ea084ae8a9ca",
"properties": [
"spells"
],
"heading": "Incantesimi",
"conditioned": true,
"dice": true
}
Hi @Zorgatone. We're about to look at innate spell casting again and I wanted to check if you still had issues with this?
@Zorgatone this is fixed.
I also added in the ability to override the Spellcasting trait name:
I have a custom layout for a statblock in italian. I also renamed the properties, so the spells field in the YAML code is "incantesimi".
Here's the relevant portion of the data.json configuration:
But this doesn't seem to be handled correctly in the plugin js code, and it breaks on this line:
TypeError: Cannot read properties of undefined (reading 'reduce')
It tries to access a property "spells" on the object, instead of reading that field name from the configuration of the layout (in my case "incantesimi")
Here's the rest of relevant information:
Obsidian v1.1.9 and TTRPG Statblocks v2.24.19 on Windows 10.
data.json:
The obsidian YAML code for the statblock used: