From 94af27925b9c10f48471d4f92234a2cd71f9ac29 Mon Sep 17 00:00:00 2001 From: mrvauxs Date: Mon, 8 Jul 2024 19:39:22 +0000 Subject: [PATCH] v0.8.11 --- js/parser.js | 2 +- js/render.js | 24 ++++++++++++------------ js/utils-changelog.js | 2 +- js/utils.js | 2 +- package.json | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) 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(`
diff --git a/js/utils.js b/js/utils.js index 382c434b21..1d9c364d53 100644 --- a/js/utils.js +++ b/js/utils.js @@ -5,7 +5,7 @@ if (typeof module !== "undefined") require("./parser.js"); // in deployment, `IS_DEPLOYED = "";` should be set below. IS_DEPLOYED = undefined; -VERSION_NUMBER = /* PF2ETOOLS_VERSION__OPEN */"0.8.10"/* PF2ETOOLS_VERSION__CLOSE */; +VERSION_NUMBER = /* PF2ETOOLS_VERSION__OPEN */"0.8.11"/* PF2ETOOLS_VERSION__CLOSE */; DEPLOYED_STATIC_ROOT = ""; // ""; // FIXME re-enable this when we have a CDN again IS_VTT = false; diff --git a/package.json b/package.json index dde7b7ad2f..be02541b98 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pf2etools", "author": "Pf2eTools", - "version": "0.8.10", + "version": "0.8.11", "license": "MIT", "description": "A site dedicated to making playing games with your friends as easy as possible.", "scripts": {