mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2025-10-28 20:45:35 -05:00
v1.201.0
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user