Releases: morepurplemorebetter/MPMBs-Character-Record-Sheet
v13.2.1 (2024-09-13)
The document-level code for v13.2.1 stable version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Overhauled how spells and cantrips in the attack section on the 1st page have their To Hit calculated, fixing issues with magic items granting bonuses where they shouldn’t and not showing the highest DC/To Hit from all spellcasting classes in case of a multiclass.
- Overhauled how the sheet decides which ability score to select for spells and cantrips in the attack section on the 1st page.
- Improved the error message when importing a faulty add-on script, it now includes more details about the error.
- Changed buttons and text in the import script dialogs to refer to the MPMB Community Add-on Script Index.
- Added
getProfBonus
function to have an easier syntax for retrieving the proficiency bonus. - Fixed
weaponsAdd.options
not working (MBUG-136, thanks TrackAtNite for reporting). - Fixed
calcChanges.spellCalc
not stacking when they should. - Fixed instances of using deprecated syntax (things not being arrays when they should).
v13.2.0 (2024-08-29)
The document-level code for v13.2.0 stable version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Overhauled how disabling automation works, because it was very buggy. It now also works after importing to a new sheet, unlike before (thanks Hyde for reporting).
- Added
nameAlt
attribute toWeaponList
objects, allowing one weapon to add multiple entries in the attack drop-down boxes. - Added a way for features to add a speed bonus to multiple movement modes (but not only all) without interfering with features that add a new movement mode with speed equal to walking speed. This expands
speed.allModes
. For example, this is necessary to make Superior Mobility interact correctly with items that grant climbing/swimming speed equal to walking speed (thanks Tink3rer for reporting). - Fixed bonuses to all speeds being added twice to movement modes set to be equal to walking speed (I’m looking at you, Mobile feat; thanks Tink3rer for reporting).
- Fixed
WeaponText
attribute of variable being passed tocalcChanges.atkCalc
not containing the content of the weapon name field (it was taking the weapon’s name from theWeaponsList
object). - Fixed
toolProfs
, tools not being added to the skills list even when a 3-letter ability abbreviation was provided. - Fixed custom
list
attributes ofWeaponList
objects not showing up in the attacks drop-down box. - Fixed attack fields not updating when changing class levels but not level total,
calcChanges.atkAdd
was not being reapplied (MBUG-134, thanks Reading Toskr for reporting). - Fixed
abilitySaveAlt
, the sheet now updates which abilities are selected for the first page’s Ability Save DC when applying the Ability Score dialog, if a class is present that gets to pick the highest of two options, e.g. Battlemaster (MBUG-135, thanks TrackAtNite for reporting). - Fixed
defaultExcluded
sub-choices of magic items and feats not being shown correctly in the Source Select dialog. - Improved handling and error text for when encountering Adobe Acrobat bug of removing pages but not removing the fields on them (related to MBUG-133).
- Fixed Improved/Superior Critical applying to attacks that have a DC instead of a to hit roll.
- Fixed
useSpellMod
for WeaponsList objects not forcing the ability field to match the spellcasting ability when selecting the attack. - Simplified some code to remove redundancies.
v13.1.14 (2024-06-28)
The document-level code for v13.1.14 stable version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Changed how attack entries are recalculated (e.g. on level change) so that more manual changes are preserved.
- Fixed issues with the interaction between attack entries and the cleric 8th-level domain features, Divine Strike, Potent Spellcasting, and Blessed Strikes.
- The
calcChanges
for Potent Spellcasting can now be referenced from the built-in variables by using
GenericClassFeatures["potent spellcasting"].calcChanges
. This allows future changes to be more easily implemented without having to go through add-on scripts. - Changed how recalculation of attack entries work (after a level-up for example) to improve manual changes not being overwritten. However, when a
calcChanges.atkAdd
is added or removed, all attack entries will still be reset to purely what the animation sets. - Fixed issue with certain attack-altering features not working as intended when the required wording was added to an attack without anything in the description field (e.g. “Rage Unarmed Strike” didn’t add Rage bonus damage).
- Improved detection (slightly) in the adventuring gear section so that the correct weight is automatically filled out.
- Fixed issue with the name in the drop-down box of feats and magic items not updating after selecting one of its variants, i.e. one of the
choices
options (thanks Ratatoskr/Reading Toskr for reporting). - Stuff selected through
chooseGear
is now added to the relevant drop-down box(es) (feature request MFR-149). weaponOptions
andarmorOptions
have a new optional attribute,selectNow
. Setting this totrue
will cause the weapon or armour to be immediately added to the sheet. Thus, a separateweaponsAdd
orarmorAdd
attribute is no longer necessary.- Edited
weaponsAdd
andarmorAdd
attributes to also allow adding options to the relevant drop-down menus. - Companions now add their attack options to the drop-down boxes of their attack section.
- Fixed Eldritch Spear and Repelling Blast not affecting Eldritch Blast if it wasn’t selected as a Warlock cantrip (MBUG-129).
- Changed the check for off-hand weapons to also work for ranged weapons (i.e. add the text “off-hand” to a ranged weapon’s name will stop the ability modifier from being added to damage).
- Fix bug with generating a spell sheet from a command on that page (MBUG-133; when changing spellcasting ability).
- Added warnings for corrupted AcroForm caused by fields from deleted pages not being properly removed (related to MBUG-133).
- Importing from another sheet now also imports manually changed spellcasting abilities.
v13.1.13 (2024-03-21)
The document-level code for v13.1.13 stable version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Changed all magical named armour to show their bonus in the armour AC field. For example, it will show “18+2” for a Dwarven Plate when selected, or “20” when not selected.
- Changed the optional racial attribute
useFromPreviousRace
:- It now merges attributes that are arrays.
- If “features” is added in
gainTraits
, all features of the previous race are copied as-is. - A new sub-attribute
evalAfterMerge
is a custom function that will be run after the merge. - The sub-attribute
gainTraits
now except the term “everything” to merge all racial attributes of the previous race with the parent RaceList entry. This includes all features. Be aware that all arrays are merged, so it is recommended to keep anything gained by the RaceList entry in its own feature and not as part of the main RaceList object. - Deprecated the sub-attribute
replaceNameInTrait
in favour ofupdateName
. This new attribute is just a string, which can be "replace", "prefix", or "suffix". It will combine the parent RaceList entry’sname
andplural
with those from the previous race and update the name displayed intrait
accordingly (i.e. for that to work, the name used intrait
must be identical to the one inname
).
- Fix the optional racial attribute
useFromPreviousRace
from creating duplicate features. - Fix critical bug with removing multiple classes and/or changing multiple subclasses at the same time.
- Fix pop-up for an erroneous page, which was added in v13.1.10. It had the title and message swapped.
- Fix spell select dialog showing “undefined” when spellcastingFactor is 0.
- Fix not everything on the spellsheet being changed back when undoing the “Flatten” button.
- Fix not everything on the spellsheet having units of measurement changed when switching between the imperial and metric system.
- Fix list of known tool/language proficiencies not having proper formatting in the pop-up dialog.
- Fix spell sheet generated for magical armour/weapons/ammunition that change their name based on the type (e.g. “Armor of the Fallen” becomes “Breastplate of the Fallen”), to have their original name in the spell sheet header. For example, it will now show “Armor of the Fallen” instead of previously “of the Fallen” when adding a “Breastplate of the Fallen”. (Thanks Nod_Hero for reporting.)
- Improve documentation.
- Corrected Flesh to Stone and Wand of Paralysis (thanks discord users for reporting).
v13.1.12 (2023-12-30)
The document-level code for v13.1.12 stable version of MPMB's Character Record Sheet, originally released on 30 December 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Updated the spell sheet glossary to include all official spell sources.
- Added optional suffix for linking CreatureList objects to CompanionList objects. Now you can add “_not_al” (e.g. “mount_not_al) for the creature to only be listed in the menu when the sheet is not in Adventurers League mode (DCI field visible) and when listed, the text “(if DM approves)” is added.
- Improved tables on the Notes page for magic items that use real-life playing cards, like the Deck of Many Things.
- Changed Improved Divine Smite to now add “in melee” to the description of a thrown weapon, so it reads “+1d8 Radiant damage in melee” (MBUG-126).
- Improved the highlight colour options by making them lighter. Text should now be easier to read when the field highlight colour is set to one of the colourful options. Note that this won’t change the colour when you import an old sheet, for that you’ll have to select the colour anew from the menu.
- Fix “Black Tentacles” short description.
- Fix “Improved Pact Weapon” and similar features not applying to magic weapons that use the
chooseGear
attribute (MBUG-125). - Fix error due to incorrect documentation “_common spell list object.js”, the
class
attribute worked only with “any” not “all”. The function has now been changed to work with both “any” and “all” for backwards compatibility. - Fix bug with magic ammunition with a pop-up for selecting the type (
chooseGear
attribute) not appearing on the 1st page and throwing an error when being added/removed.
v13.1.11 (2023-11-15)
The document-level code for v13.1.11 stable version of MPMB's Character Record Sheet, originally released on 15 November 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Added better error handling for malformed choice/extrachoice/variant/subclass entries of classes, races, backgrounds, feats, and magic items. Now this will no longer cause the source selection dialog to error out. When selecting one of the above with such an erroneous sub-choice, a warning will display in the console.
- Added
notes
as an optional attribute to the CreatureList object. - Added support for composite AC of the CreatureList object on the Wild Shape pages (e.g.
ac : "10+Dex"
). - Changed how wild shapes attacks are calculated to fix a bug (see below) and adhere to the other attack sections so that more complex modifiers and non-numeric damage die entries work correctly.
- Made wild shapes recalculate when changing mental stats using the ability score dialog.
- Fixed ability save DCs on the first page using the wrong ability modifier when the corresponding entry on the spell sheet page uses a different ability score to determine the DC (MBUG-122).
- Fixed the listing of the “Additional Sheet” in the print dialog to be clearer.
- Fixed wild shapes attacks not listening to the right syntax for attacks and not being backwards-compatible.
- Fixed wild shapes not recalculating when used without the druid class being selected.
- Fixed wild shapes recalculating using the correct proficiency bonus when changing level.
- Fixed field filling issue for creatures, feats, and magic items that themselves add another of the same type using
eval
(e.g. a feat that adds another feat upon selection). Before, this could overwrite the first selection with one added througheval
.
v13.1.10 (2023-09-29)
The document-level code for v13.1.10 stable version of MPMB's Character Record Sheet, originally released on 29 September 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Changed the dialog for importing content from another MPMB sheet to include both the x86 and x64 paths to put the JavaScript file on Windows. Unfortunately, it is not possible to know which Acrobat version is being used in the JavaScript API, so the user will have to pick the right version (32/64-bit) themselves.
- Added a method of detecting errors when the automation generates/removes a page. This seemed to be happening more and more, especially with the spell sheet pages. Now the sheet should automatically remove any erroneous pages when (re)generating spell sheets after an attempt failed (created a blank page).
- Fixed changes to spellcasting from features not always saving correctly when closing the PDF.
- Fixed
savetxt.text
attribute: strings were being converted to metric while the sheet was set to imperial units.
v13.1.9 (2023-09-08)
The document-level code for v13.1.9 stable version of MPMB's Character Record Sheet, originally released on 8 September 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- Fix
fields.Mod
not always being set to a number (necessary for dynamic changes using calcChanges.atkAdd/atkCalc). - Fix error when toggling visibility of location columns in the extra equipment section on the 3rd page of the Colourful sheets.
- Fix for attacks being incorrectly recognized as a weapon (e.g. Alchemist’s Fire). Added the
isNotWeapon
attribute for WeaponsList objects for this. - Fix rage damage being applied to attacks that don’t use Strength and clarify that the bonus damage shouldn’t be applied if the weapon is used to make ranged attacks (i.e. with thrown weapons).
- Fix part of fields being hidden on the colourful sheets when the background lines were hidden.
- Changed icon buttons to have their dimensions in the tooltip, in both pixels (300dpi) and mm.
v13.1.7 (2023-06-05)
The document-level code for v13.1.7 stable version of MPMB's Character Record Sheet, originally released on 5 June 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- NEW FEATURE: the sheet now remembers manually changed HD when changing level.
- Fix removing a class not removing all the features from the second and third page and errors in the console showing up. This happens for any (sub)class with
autoSelectExtrachoices
attributes. - Fix the
times
attribute being an array not resulting in level-based changes for feats or magic items where thespellcastingBonus
is an object and not an array. - Fix spellcasting ability not being properly set for items who rely on a class, if the magic item is selected before selecting the corresponding class.
- Fix not importing all settings for disabled automation when importing from one sheet to another (e.g. if you disabled the automation for magic items).
v13.1.6 (2023-04-12)
The document-level code for v13.1.6 stable version of MPMB's Character Record Sheet, originally released on 12 April 2023.
Note that this repository only includes the SRD content and that these files alone are not enough to create the PDF character sheet.
Code changes
Changelog
- CRITICAL BUG FIX: class features weren’t automatically added to the 3rd page’s Notes section (the
autoSelectExtrachoices
attribute). This affects Monk and Ranger characters especially.