Skip to content

Commit

Permalink
Kill Books for Paizo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Apr 11, 2023
1 parent 49bb58a commit 7256828
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion data/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
{
"ver": "0.8.0",
"date": "2023-03-??",
"txt": "- Added Treasure Vault.\n- Removed Fluff.\n(Thanks to @Jnosh for the following!)\n- Added the following sources:\n - Beginner Box\n - A Fistful of Flowers\n - Torment and Legacy\n - Pathfinder One-Shot: Sundered Waves\n - Threshold of Knowledge\n- Fixed creature scaler being run when disabled, leading to erroneous stats.\n- Minor improvements to creature statblock rendering:\n - show notes on individual skills\n - fix display of multiple ACs and AC abilities\n - show ability cost entries\n - support ability entries on individual saving throws\n - add skills notes & languages notes to add non-standard entries to the respective lists\n - Allow activity entries for creature attacks again to enable the rare case of attacks that take multiple actions.\n - show creature ability prerequisites\n - improve support for multiple HP entries on creatures (e.g. Hydra) and add support for HP notes\n - add support for a note property on creature spellcasting entries (e.g. Manticore Paaridar)\n _copy improvements:\n - Extend property path support to additional _copy modifier modes\n - add a new _copy mode that sets object properties\n - add ability to apply Weak/Elite adjustment to creatures during _copy\n- add text converter support for creature skill notes, language notes and per saving throw abilities\n- (A lot of Typos/Tags)"
"txt": "- Added Treasure Vault.\n- Removed Fluff and Books.\n(Thanks to @Jnosh for the following!)\n- Added the following sources:\n - Beginner Box\n - A Fistful of Flowers\n - Torment and Legacy\n - Pathfinder One-Shot: Sundered Waves\n - Threshold of Knowledge\n- Fixed creature scaler being run when disabled, leading to erroneous stats.\n- Minor improvements to creature statblock rendering:\n - show notes on individual skills\n - fix display of multiple ACs and AC abilities\n - show ability cost entries\n - support ability entries on individual saving throws\n - add skills notes & languages notes to add non-standard entries to the respective lists\n - Allow activity entries for creature attacks again to enable the rare case of attacks that take multiple actions.\n - show creature ability prerequisites\n - improve support for multiple HP entries on creatures (e.g. Hydra) and add support for HP notes\n - add support for a note property on creature spellcasting entries (e.g. Manticore Paaridar)\n _copy improvements:\n - Extend property path support to additional _copy modifier modes\n - add a new _copy mode that sets object properties\n - add ability to apply Weak/Elite adjustment to creatures during _copy\n- add text converter support for creature skill notes, language notes and per saving throw abilities\n- (A lot of Typos/Tags)"
}
]
}
20 changes: 11 additions & 9 deletions js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ class NavBar {
this._addElement_li(NavBar._CAT_RULES, "quickreference.html", "Quick Reference");
this._addElement_li(NavBar._CAT_RULES, "variantrules.html", "Variant Rules & Subsystems");
this._addElement_li(NavBar._CAT_RULES, "tables.html", "Tables");
this._addElement_divider(NavBar._CAT_RULES);
this._addElement_dropdown(NavBar._CAT_RULES, NavBar._CAT_BOOKS, {isSide: true, page: "books.html"});
this._addElement_li(NavBar._CAT_BOOKS, "books.html", "View All/Homebrew");
// Kill Fluff for Paizo
// this._addElement_divider(NavBar._CAT_RULES);
// this._addElement_dropdown(NavBar._CAT_RULES, NavBar._CAT_BOOKS, {isSide: true, page: "books.html"});
// this._addElement_li(NavBar._CAT_BOOKS, "books.html", "View All/Homebrew");

this._addElement_dropdown(null, NavBar._CAT_PLAYER);
this._addElement_li(NavBar._CAT_PLAYER, "ancestries.html", "Ancestries");
Expand Down Expand Up @@ -199,12 +200,13 @@ class NavBar {
const brew = await BrewUtil.pAddBrewData();

[
{
prop: "book",
parentCategory: NavBar._CAT_BOOKS,
page: "book.html",
fnSort: SortUtil.ascSortBook.bind(SortUtil),
},
// Kill Fluff for Paizo
// {
// prop: "book",
// parentCategory: NavBar._CAT_BOOKS,
// page: "book.html",
// fnSort: SortUtil.ascSortBook.bind(SortUtil),
// },
{
prop: "adventure",
page: "adventure.html",
Expand Down
8 changes: 5 additions & 3 deletions js/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -1999,9 +1999,11 @@ function Renderer () {
type: "link",
href: {
type: "internal",
path: page,
hash,
hashPreEncoded: true,
// Kill Fluff for Paizo
// path: page,
// hash,
// hashPreEncoded: true,
path: UrlUtil.getCurrentPage(),
},
text: displayText,
};
Expand Down

0 comments on commit 7256828

Please sign in to comment.