The document-level code for v14.0.6-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
- Implemented Find Steed errata on the companion page (thanks Ainavargr for reporting).
- Fixed Sneak Attack description to mention incapacitated instead of conscious (thanks Rosehawk for testing and suggesting an alternative).
Wild Shape
- Added the
calcChanges.wildshapeCallbackattribute by overhauling how Wild Shapes are applied by the sheet. It now first makes a consolidated object of the selected creature and the character, which is then fed to any presentcalcChanges.wildshapeCallbackfunctions to manipulate before applying the outcome to the sheet. - Added the
forceWildshapeOptionattribute toCreatureListobjects. Setting this attribute forces an entry to be displayed in the Wild Shape Options menu and in the dropdowns on the Wild Shape page. This even works for creatures added with thecreatureOptionscommon attribute. - Added the
wildshapeShowattribute to afeatures,traits, oractionsentry of aCreatureListobjects. Setting this tofalsewill cause that entry to not appear on a Wild Shape page, while setting it to a string will make that string appear on the wild shape page instead of thedescriptionattribute. - Changed the
useSpellModattribute for an attack entry of a creature. It will now work on the Wild Shape page. - Changed how the header of the Wild Shape page is populated. It is no longer taken from the
additionalattribute of the “wild shape” class feature, but instead class features can set this header with thewildshapePageInfoattribute. Note that only the highest level of the last applied class will determine what the header says. - Changed the wording of Multiattack of all creatures to follow the same style, thus making it possible to shorten it on the Wild Shape page to save space.
- Fixed Wild Shape failing for
CreatureListobjects with atypeorsubtypeattribute that is an array. - Changed how the “Wild Shape Options” button generates the list of selectable wild shapes. Now only Beasts are added by default and the “All Beasts” entry also has sub-groups for parts of the alphabet.
- Updated all
wildshapeStringentries to the new way of displaying Wild Shape traits using the new rich text formatting options.
Other Changes
- Made LR button also reset Short Rest limited features.
- Fixed
bonusClassExtrachoicesnot getting removed when the last feature granting them is removed. - Fixed
bonusClassExtrachoicesnot appearing in the “Choose Feature” menu after the first time clicking the menu, if the granted extra features are for a subclass of a class that is selected but that has no or a different subclass (MBUG-144 & MBUG-144, thanks Piers for reporting). - Extended the ability to not display a feature’s text to
extrachoicesentries. Now they also won’t appear if theirdescriptionattribute is set to beundefined. - Fixed feature text appearing in the wrong place in the Class Feature field when multiclassing.
- Updated mentions of the rules version to reflect new labels on D&D Beyond, from “2024 (5.5e)” to “5.5e (2024)”.