V1.24.0: multiclassing, by each class's own level
- With the campaign setting on, the level-up checklist asks which class gains the level; a new class needs both classes' ability requirements (2014 rules) - HP, Hit Dice, features, Boons, subclasses and counters go by each class's own level; spell slots add up to a caster level, pact slots apart - A first level in a new class writes its level-1 gifts and what it teaches - Eldritch Knight and Arcane Trickster cast from level 3 with real slots - The sheet shows each class's road to 20 and suggested multiclass routes (Hexadin, Sorlock, fighter dip...) with the character's progress and scores Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -97,9 +97,13 @@ export function xpLabel(xp: number, progress: { nextLevelAt: number | null }): s
|
||||
return progress.nextLevelAt == null ? `${xp.toLocaleString()} XP` : `${xp.toLocaleString()} / ${progress.nextLevelAt.toLocaleString()} XP`;
|
||||
}
|
||||
|
||||
// "Fighter" or, with a subclass chosen, "Fighter (Champion)".
|
||||
export function classLabel(characterClass: string | null, subclassName?: string | null): string {
|
||||
// "Fighter" or, with a subclass chosen, "Fighter (Champion)". A multiclassed
|
||||
// character (`classes` with more than one) reads "Fighter 3 (Champion) / Rogue 2".
|
||||
export function classLabel(characterClass: string | null, subclassName?: string | null, classes?: { characterClass: string; level: number; subclassName: string | null }[]): string {
|
||||
if (!characterClass) return '';
|
||||
if (classes && classes.length > 1) {
|
||||
return classes.map((c) => `${CLASS_LABELS[c.characterClass] ?? c.characterClass} ${c.level}${c.subclassName ? ` (${c.subclassName})` : ''}`).join(' / ');
|
||||
}
|
||||
const label = CLASS_LABELS[characterClass] ?? characterClass;
|
||||
return subclassName ? `${label} (${subclassName})` : label;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user