Skip to content

Commit

Permalink
v0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Apr 20, 2023
1 parent 7aa35a5 commit 9f6d92d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
run: |
zip -r -s 500m img-${{ env.RELEASE_VERSION }}.zip img/
- name: Upload Release
continue-on-error: true
# Add the files one-by-one in an effort to avoid timeouts
run: |
hub release create -a pf2ools-${{ env.RELEASE_VERSION }}.zip -F RELEASE_NOTES.md ${{ env.RELEASE_VERSION }}
Expand Down
5 changes: 5 additions & 0 deletions data/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,11 @@
"ver": "0.8.1",
"date": "2023-04-20",
"txt": "- Fixed a rendering bug related to spellcasting notes in creatures"
},
{
"ver": "0.8.2",
"date": "2023-04-20",
"txt": "- Fixed a bug regarding being unable to turn on or off heritages on the ancestry page"
}
]
}
27 changes: 18 additions & 9 deletions js/ancestries.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,6 @@ class AncestriesPage extends BaseComponent {
Object.keys(validHLookup).forEach(k => {
if (!seenKeys.has(k) && target[k]) target[k] = false;
});

// Kill Fluff for Paizo
const ctrlClick = jQuery.Event("click");
ctrlClick.ctrlKey = true;
$("button[title='Select All']").trigger(ctrlClick)

// Run the sync in the other direction, a loop that *should* break once the hash/state match perfectly
if (!isInitialLoad) this._setHashFromState();
}
Expand Down Expand Up @@ -568,6 +562,18 @@ class AncestriesPage extends BaseComponent {

const $ele = $$`<li class="row ${isExcluded ? "row--blacklisted" : ""}">${$lnk}</li>`;

$ele.on("click", () => {
setTimeout(() => {
// Kill Fluff for Paizo (at least fill the page with heritages if no fluff is shown)
const nxtState = {};
this._listHeritage.visibleItems.concat(this._listVeHeritage.visibleItems)
.filter(it => it.values.mod === "brew" || it.values.mod === "fresh")
.map(it => it.values.stateKey)
.forEach(stateKey => nxtState[stateKey] = true);
this._proxyAssign("state", "_state", "__state", nxtState);
}, 1);
})

return new ListItem(
ancI,
$ele,
Expand Down Expand Up @@ -1358,8 +1364,11 @@ window.addEventListener("load", async () => {
ancestriesPage.pOnLoad()
// Kill Fluff for Paizo (at least fill the page with heritages if no fluff is shown)
.then(() => {
const ctrlClick = jQuery.Event("click");
ctrlClick.ctrlKey = true;
$("button[title='Select All']").trigger(ctrlClick)
const nxtState = {};
this._listHeritage.visibleItems.concat(this._listVeHeritage.visibleItems)
.filter(it => it.values.mod === "brew" || it.values.mod === "fresh")
.map(it => it.values.stateKey)
.forEach(stateKey => nxtState[stateKey] = true);
this._proxyAssign("state", "_state", "__state", nxtState);
})
});
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.1"/* PF2ETOOLS_VERSION__CLOSE */;
VERSION_NUMBER = /* PF2ETOOLS_VERSION__OPEN */"0.8.2"/* 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.1",
"version": "0.8.2",
"license": "MIT",
"description": "A site dedicated to making playing games with your friends as easy as possible.",
"scripts": {
Expand Down

0 comments on commit 9f6d92d

Please sign in to comment.