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:
2026-10-11 16:02:51 +02:00
co-authored by Claude Opus 5.5
parent e7b6e0065a
commit 18d9e7301c
56 changed files with 4720 additions and 825 deletions
@@ -0,0 +1,64 @@
import { useState } from 'react';
import { useProgression } from '../api/queries';
import { slotLevelLabel } from '../lib/format';
import { Spinner } from './Spinner';
import type { CharacterClass } from '../api/types';
// The road from level 1 to 20 for a class and subclass: what each level
// gives. With `currentLevel` the levels already reached are muted, the next
// one is marked "next up", and only the road ahead shows until "Show all".
export function ProgressionTimeline({
characterClass,
subclass,
currentLevel,
subclassName,
}: {
characterClass: CharacterClass;
subclass?: string | null;
currentLevel?: number;
subclassName?: string | null;
}) {
const { data: levels, isLoading } = useProgression(characterClass, subclass);
const [showAll, setShowAll] = useState(!currentLevel);
if (isLoading || !levels) return <Spinner label="Reading the road ahead…" />;
const shown = showAll || !currentLevel ? levels : levels.filter((l) => l.level >= currentLevel);
return (
<div className="progression">
<ol className="progression-list">
{shown.map((l) => {
const reached = currentLevel !== undefined && l.level <= currentLevel;
const nextUp = currentLevel !== undefined && l.level === currentLevel + 1;
const empty = l.features.length === 0 && !l.boon && !l.choosesSubclass && !l.unlocksSpellLevel;
return (
<li key={l.level} className={`progression-level${reached ? ' is-reached' : ''}${nextUp ? ' is-next' : ''}`}>
<span className="progression-badge">
{l.level}
{nextUp && <span className="badge badge-live">next up</span>}
</span>
<div className="progression-gains">
{l.features.map((f) => (
<div key={f.name} className="progression-feature" title={f.text}>
<strong>{f.name}</strong>
{f.fromSubclass && <span className="badge">{subclassName || 'subclass'}</span>}
<span className="combatant-sub"> — {f.text}</span>
</div>
))}
{l.boon && <div className="progression-feature">⭐ A Boon of your choice</div>}
{l.choosesSubclass && <div className="progression-feature">🧭 Choose your subclass</div>}
{l.unlocksSpellLevel && <div className="progression-feature">✨ {slotLevelLabel(l.unlocksSpellLevel)}-level spells unlock</div>}
{empty && <div className="combatant-sub">More hit points, and the numbers grow.</div>}
</div>
</li>
);
})}
</ol>
{currentLevel !== undefined && currentLevel > 1 && (
<button type="button" className="btn btn-ghost mt-sm" onClick={() => setShowAll((s) => !s)}>
{showAll ? 'Hide the levels already reached' : 'Show all 20 levels'}
</button>
)}
</div>
);
}