Skip to content

Commit

Permalink
v0.8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jul 8, 2024
1 parent eb3a18b commit 94af279
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion js/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
24 changes: 12 additions & 12 deletions js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<p class="pf2-stat pf2-stat__section"><strong>${footer.name}&nbsp;</strong>${renderer.render(footer.entries)}`
}).join("")
: ""
}
item.footers
? item.footers.map((footer) => {
const renderer = Renderer.get();
return `<p class="pf2-stat pf2-stat__section"><strong>${footer.name}&nbsp;</strong>${renderer.render(footer.entries)}`
}).join("")
: ""
}
${Renderer.item.getGifts(item)}
${Renderer.generic.getSpecial(item, { type: "craftReq", title: "Craft Requirements" })}
${Renderer.generic.getSpecial(item, { title: "Destruction" })}
Expand Down Expand Up @@ -5291,8 +5291,8 @@ Renderer.item = {
.forEach(skill => {
skills.push(`${skill.includes("Lore") ? `${renderer.render(`{@skill Lore||${skill}}`)}` : `${renderer.render(`{@skill ${skill}}`)}`}&nbsp;${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(`</p>`);
}
if (item.abilityMods) {
Expand All @@ -5314,21 +5314,21 @@ Renderer.item = {
savingThrowRenderStack.push(
`<strong>Fort&nbsp;</strong>${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(
`<strong>Ref&nbsp;</strong>${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(
`<strong>Will&nbsp;</strong>${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) {
Expand Down
2 changes: 1 addition & 1 deletion js/utils-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class UtilsChangelog {
htmlStack += `</div>`;

// 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 ? `, <i>&quot;<span ${it.titleAlt ? `class="help" title="AKA &quot;${it.titleAlt.escapeQuotes()}&quot; edition"` : ""}>${it.title.escapeQuotes()}</span>&quot;</i> edition` : "";
$wrp.prepend(`<div class="flex-col" id="v${it.ver}">
Expand Down
2 changes: 1 addition & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (typeof module !== "undefined") require("./parser.js");

// in deployment, `IS_DEPLOYED = "<version number>";` 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;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 94af279

Please sign in to comment.