This commit is contained in:
TheGiddyLimit
2024-03-10 21:53:34 +00:00
parent b323d4123e
commit f00d1f3833
272 changed files with 24017 additions and 9350 deletions

View File

@@ -1395,7 +1395,7 @@ class SpellcastingTraitConvert {
const value = this._getParsedSpells({thisLine, isMarkdown});
if (!spellcastingEntry.spells) spellcastingEntry.spells = {"0": {"spells": []}};
spellcastingEntry.spells["0"].spells = value;
} else if (/ [Ll]evel/.test(thisLine) && /(?::| -) /.test(thisLine)) {
} else if (/[- ][Ll]evel/.test(thisLine) && /(?::| -) /.test(thisLine)) {
hasAnyHeader = true;
let property = thisLine.substring(0, 1);
const allSpells = this._getParsedSpells({thisLine, isMarkdown});
@@ -1403,7 +1403,7 @@ class SpellcastingTraitConvert {
const out = {};
if (thisLine.includes(" slot")) {
const mWarlock = /^(\d)..(?: [Ll]evel)?-(\d).. [Ll]evel \((\d) (\d)..[- ][Ll]evel slots?\)/.exec(thisLine);
const mWarlock = /^(\d)..(?:[- ][Ll]evel)?-(\d)..[- ][Ll]evel \((\d) (\d)..[- ][Ll]evel slots?\)/.exec(thisLine);
if (mWarlock) {
out.lower = parseInt(mWarlock[1]);
out.slots = parseInt(mWarlock[3]);