This commit is contained in:
TheGiddyLimit
2024-02-04 22:30:57 +00:00
parent 7c341dc1a7
commit d16f838683
100 changed files with 3332 additions and 88 deletions

View File

@@ -1359,7 +1359,11 @@ class SpellcastingTraitConvert {
static _parseSpellcasting ({ent, isMarkdown, displayAs, actions, reactions}) {
let hasAnyHeader = false;
const spellcastingEntry = {"name": ent.name, "headerEntries": [this._parseToHit(ent.entries[0])]};
const spellcastingEntry = {
"name": ent.name,
"type": "spellcasting",
"headerEntries": [this._parseToHit(ent.entries[0])],
};
ent.entries.forEach((thisLine, i) => {
thisLine = thisLine.replace(/,\s*\*/g, ",*"); // put asterisks on the correct side of commas
if (i === 0) return;