The document-level code for v14.0.8-beta version of MPMB's Character Record Sheet.
Note that this repository only includes the SRD content (D&D 5e, 2014) and that these files alone are not enough to create the PDF character sheet.
Important
For D&D 5e (2014).
Code changes
Changelog
Content
- Revised some class features so they don't overflow on the Printer Friendly sheet because the headers now take up more space. This still needs more testing.
Classes
- Added
subclassGainedLevelattribute toClassListobjects. This attribute is used to determine at which level to ask to gain a subclass. If not present, it’s generated from the “subclassfeatureX” in theClassListobject, or defaults to 3. - Changed how class features are ordered. Now the object name instead of the name is used to order the features alphabetically per level. Per level, first all
ClassListfeatures are given alphabetically by object name, followed by allClassSubListfeatures alphabetically by object name.
Text Options
- Added a “Force multiline text formatting” checkbox to the Text Options dialog. Enabling this will remove rich text formatting that doesn’t match the sheet setting when a field is committed.
Because of a bug in Adobe Acrobat for Mac OS, when resetting or opening a fresh sheet this will be enabled on Mac OS, but disabled on Windows.
Spell Sheets
- Fixed the first column not being applied correctly when a spell is gained from both
spellcastingBonusandspellcastingExtra. - Added the
isBonusSpellvariable being passed tocalcChanges.spellAddto indicate whether or not the spell is gained fromspellcastingBonusor not. - Added the
affectsDuplicatesattribute tospellChangesto indicate which of the spells it should affect if there are duplicates on the spell sheet.
Bug Fixes
- Fixed Arcane Grimoire not amending Arcane Recovery (MBUG-78, thanks jensgw for reporting and for calif94577 and TrackAtNite for getting the ball rolling on a fix).
- Fixed the Notes section on the 3rd page getting a line break added before the class features.
- Fixed the first column on spell sheet pages not resetting.
- Fixed
AddSubClass()to correctly enumerate duplicate object names.
Other Changes
- Improved handling of
descriptionFulltable arrays. - Added
Object.value,Object.entries, andObject.assignso these can be used just like the identical ES6 JavaScript functions.