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).