diff --git a/js/parser.js b/js/parser.js index 9f0b771519..118cfb2cfc 100644 --- a/js/parser.js +++ b/js/parser.js @@ -2302,7 +2302,7 @@ Parser.SOURCES_ADVENTURES = new Set([ SRC_HStR, SRC_TEC, SRC_SF0, - SRC_Rust + SRC_Rust, ]); Parser.SOURCES_VANILLA = new Set([ SRC_APG, diff --git a/js/render.js b/js/render.js index b2c206c3cc..a0ad0e6aae 100644 --- a/js/render.js +++ b/js/render.js @@ -5169,13 +5169,13 @@ Renderer.item = { ${Renderer.item.getVariantsHtml(item)} ${item.footers || item.craftReq || item.special || item.destruction || item["Tea Ceremony"] || item.gifts ? Renderer.utils.getDividerDiv() : ""} ${ - item.footers ? - item.footers.map((footer) => { - const renderer = Renderer.get(); - return `
${footer.name} ${renderer.render(footer.entries)}` - }).join("") - : "" - } + item.footers + ? item.footers.map((footer) => { + const renderer = Renderer.get(); + return `
${footer.name} ${renderer.render(footer.entries)}` + }).join("") + : "" +} ${Renderer.item.getGifts(item)} ${Renderer.generic.getSpecial(item, { type: "craftReq", title: "Craft Requirements" })} ${Renderer.generic.getSpecial(item, { title: "Destruction" })} @@ -5291,8 +5291,8 @@ Renderer.item = { .forEach(skill => { skills.push(`${skill.includes("Lore") ? `${renderer.render(`{@skill Lore||${skill}}`)}` : `${renderer.render(`{@skill ${skill}}`)}`} ${renderer.render(`{@d20 ${item.skills[skill]["default"]}||${skill}}`)}${Renderer.utils.getNotes(item.skills[skill], { exclude: ["default"], dice: { name: skill } })}`); }); - renderStack.push(skills.join(", ")) - if (item.skills.special) renderStack.push(`${skills.length ? "; " : ""}${item.skills.special}`); + renderStack.push(skills.join(", ")) + if (item.skills.special) renderStack.push(`${skills.length ? "; " : ""}${item.skills.special}`); renderStack.push(`
`); } if (item.abilityMods) { @@ -5314,21 +5314,21 @@ Renderer.item = { savingThrowRenderStack.push( `Fort ${Renderer.get().render(`{@d20 ${item.savingThrows.Fort.default}||Fort Save}`) }${Renderer.utils.getNotes(item.savingThrows.Fort, { exclude: ["default", "abilities"], dice: { name: "Fort Save" } }) - }` + }`, ); } if (item.savingThrows.Ref) { savingThrowRenderStack.push( `Ref ${Renderer.get().render(`{@d20 ${item.savingThrows.Ref.default}||Ref Save}`) }${Renderer.utils.getNotes(item.savingThrows.Ref, { exclude: ["default", "abilities"], dice: { name: "Ref Save" } }) - }` + }`, ); } if (item.savingThrows.Will) { savingThrowRenderStack.push( `Will ${Renderer.get().render(`{@d20 ${item.savingThrows.Will.default}||Will Save}`) }${Renderer.utils.getNotes(item.savingThrows.Will, { exclude: ["default", "abilities"], dice: { name: "Will Save" } }) - }` + }`, ); } if (item.ac) { diff --git a/js/utils-changelog.js b/js/utils-changelog.js index e9deaa9d6c..7c7eb04e47 100644 --- a/js/utils-changelog.js +++ b/js/utils-changelog.js @@ -60,7 +60,7 @@ class UtilsChangelog { htmlStack += ``; // Earliest Github release was v0.1.2 - const hasGithubRelease = vMajor || vMinor > 1 || vMinor === 1 && vPatch >= 2; + const hasGithubRelease = vMajor || vMinor > 1 || (vMinor === 1 && vPatch >= 2); const titlePart = it.title ? `, "${it.title.escapeQuotes()}" edition` : ""; $wrp.prepend(`