V1.23.0: every subclass, 43 species, the Artificer, and the road to level 20
- All 123 official subclasses (2014 books and the 2024 Player's Handbook), each with its book and features up to level 20; one file per class - The builder has a subclass step after the class: pick one, let a die suggest one, or decide later; its gifts arrive at the class's choice level - 2024 updates (Wild Heart, Warrior of the Elements) offer a one-click switch - The Road Ahead: a level 1-20 timeline on every sheet and in the builder - 33 new species (2024 Aasimar and Goliath, Monsters of the Multiverse) with chosen +2/+1 or +1/+1/+1 bonuses; species roll is now a d8 by family - The Artificer: class, half-caster slots from level 1, features, Flash of Genius - Class tables and counters run to level 20; a fifth Boon, Resolve Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ function owesSubclass(characterClass, level) {
|
||||
|
||||
const subclassOwedFeature = (characterClass) => ({
|
||||
name: SUBCLASS_OWED,
|
||||
text: `Choose one with your DM: ${subclassesOf(characterClass).map((subclass) => subclass.name).join(', ')}.`,
|
||||
text: `Choose one of the ${subclassesOf(characterClass).length} with your DM (the level-up checklist lists them all).`,
|
||||
});
|
||||
|
||||
// Everything a subclass has given by `level`, in the order it came.
|
||||
@@ -247,4 +247,31 @@ function levelUpPlan(character, { subclasses = true } = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { LevelUpError, featuresAt, owesSubclass, subclassChoice, subclassByDefault, switchSubclass, addFeatures, boonTaken, boonOptions, hardyTempHp, advance, spellsGainedAt, levelUpPlan };
|
||||
// The road from level 1 to 20 for a class (and subclass): what every level
|
||||
// gives, as the progression timeline shows it. Level 1 is what the builder
|
||||
// writes; a level that grants a Boon says so. `fromSubclass` marks the
|
||||
// subclass's own lines.
|
||||
function progression(characterClass, subclassKey = null) {
|
||||
const subclass = findSubclass(characterClass, subclassKey);
|
||||
const levels = [];
|
||||
for (let level = 1; level <= MAX_FEATURE_LEVEL; level++) {
|
||||
const own = level === 1 ? CLASS_FEATURES[characterClass] || [] : featuresAt(characterClass, level);
|
||||
const fromSubclass = subclass ? subclass.features[level] || [] : [];
|
||||
const slots = maxSpellLevel(characterClass, level);
|
||||
levels.push({
|
||||
level,
|
||||
features: [
|
||||
...own.filter((entry) => !entry.boon).map(({ name, text }) => ({ name, text, fromSubclass: false })),
|
||||
...fromSubclass.map(({ name, text }) => ({ name, text, fromSubclass: true })),
|
||||
],
|
||||
boon: own.some((entry) => entry.boon),
|
||||
// The level a subclass is chosen, when none is yet.
|
||||
choosesSubclass: !subclass && subclassesOf(characterClass).length > 0 && level === SUBCLASS_LEVEL[characterClass],
|
||||
// Set when this level opens up a new level of spells.
|
||||
unlocksSpellLevel: slots > (level === 1 ? 0 : maxSpellLevel(characterClass, level - 1)) ? slots : null,
|
||||
});
|
||||
}
|
||||
return levels;
|
||||
}
|
||||
|
||||
module.exports = { LevelUpError, progression, featuresAt, owesSubclass, subclassChoice, subclassByDefault, switchSubclass, addFeatures, boonTaken, boonOptions, hardyTempHp, advance, spellsGainedAt, levelUpPlan };
|
||||
|
||||
Reference in New Issue
Block a user