diff --git a/data/changelog.json b/data/changelog.json index 5cec2a5ca2..69f9d7c566 100644 --- a/data/changelog.json +++ b/data/changelog.json @@ -277,7 +277,12 @@ "ver": "0.8.0", "title": "Quesadilla Day", "date": "2023-04-19", - "txt": "- Added Treasure Vault\n- Removed Fluff and Books\n- Added support for direct Item Category parsing in Text Converter\n- (Typos/Tags)\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 - add support for a note property on creature abilities (e.g. Mafika Ayuwari)\n - add support for troop thresholds on creatures\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:\n - creature skill notes\n - language notes\n - per saving throw abilities\n - troop thresholds\n- (And I mean a **lot** of Typos/Tags)" + "txt": "- Added Treasure Vault\n- Removed Fluff and Books\n- Added support for direct Item Category parsing in Text Converter\n- (Typos/Tags)\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 - add support for a note property on creature abilities (e.g. Mafika Ayuwari)\n - add support for troop thresholds on creatures\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:\n - creature skill notes\n - language notes\n - per saving throw abilities\n - troop thresholds\n- (And I mean a **lot** of Typos/Tags)" + }, + { + "ver": "0.8.1", + "date": "2023-04-20", + "txt": "- Fixed a rendering bug related to spellcasting notes in creatures" } ] } diff --git a/js/render.js b/js/render.js index 40665fa547..d070e03f34 100644 --- a/js/render.js +++ b/js/render.js @@ -4506,7 +4506,7 @@ Renderer.creature = { let spells = [] for (let spell of sc.entry["constant"][clvl].spells) { let bracket = "" - if (spell.notes.length) { + if (spell?.notes?.length) { bracket = ` (${spell.notes.join(", ")})` } spells.push(`{@spell ${spell.name}|${spell.source || SRC_CRB}|${spell.name}}${bracket}`) diff --git a/js/utils.js b/js/utils.js index 2d9e8cde24..1309d4e886 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.0"/* PF2ETOOLS_VERSION__CLOSE */; +VERSION_NUMBER = /* PF2ETOOLS_VERSION__OPEN */"0.8.1"/* 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 e6931bb6e3..4ef2293ba7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pf2etools", "author": "Pf2eTools", - "version": "0.8.0", + "version": "0.8.1", "license": "MIT", "description": "A site dedicated to making playing games with your friends as easy as possible.", "scripts": {