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:
@@ -42,6 +42,7 @@ import { Rollable } from '../components/Rollable';
|
||||
import { withBonus } from '../lib/diceRoller';
|
||||
import { LevelUpModal } from '../components/LevelUpModal';
|
||||
import { ProgressionTimeline } from '../components/ProgressionTimeline';
|
||||
import { MulticlassRoutes } from '../components/MulticlassRoutes';
|
||||
import { GearInForce } from '../components/CharacterPanel';
|
||||
import { effectsSummary } from '../lib/gear';
|
||||
import { InfoTip } from '../components/InfoTip';
|
||||
@@ -65,6 +66,7 @@ import {
|
||||
formatPurse,
|
||||
purseWorthInGold,
|
||||
spellLevelLabel,
|
||||
slotLevelLabel,
|
||||
} from '../lib/format';
|
||||
import { speciesIcon } from '../lib/speciesIcons';
|
||||
import { hpMax as previewHpMax, scaledDamageDice, MAX_GEAR_LEVEL } from '../lib/previewCalc';
|
||||
@@ -432,7 +434,7 @@ export function CharacterSheetPage() {
|
||||
<span aria-hidden="true">{speciesIcon(character.species)}</span> {character.name}
|
||||
</h1>
|
||||
<p className="subtitle">
|
||||
{character.species && SPECIES_LABELS[character.species]} {classLabel(character.characterClass, character.subclassName)} · Level{' '}
|
||||
{character.species && SPECIES_LABELS[character.species]} {classLabel(character.characterClass, character.subclassName, character.classes)} · Level{' '}
|
||||
{character.level}
|
||||
{trackXp && ` · ${xpLabel(character.xp, character.xpProgress)}`}
|
||||
{trackXp && character.xpProgress.levelUpDue && (
|
||||
@@ -746,6 +748,20 @@ export function CharacterSheetPage() {
|
||||
</Rollable>{' '}
|
||||
<InfoTip term="SPELL_ATTACK_BONUS" />
|
||||
</p>
|
||||
{sheet.spellcastingByClass.length > 1 && (
|
||||
<p className="combatant-sub" style={{ margin: '0.2rem 0 0' }}>
|
||||
By class:{' '}
|
||||
{sheet.spellcastingByClass
|
||||
.map((c) => `${CLASS_LABELS[c.characterClass]} (${ABILITY_LABELS[c.ability]}) DC ${c.saveDC}, ${fmtMod(c.attackBonus)}`)
|
||||
.join(' · ')}
|
||||
</p>
|
||||
)}
|
||||
{sheet.pactSlots && (
|
||||
<p className="combatant-sub" style={{ margin: '0.2rem 0 0' }}>
|
||||
Pact Magic: {sheet.pactSlots.count} slot{sheet.pactSlots.count === 1 ? '' : 's'} of {slotLevelLabel(sheet.pactSlots.slotLevel)} level, back on a short rest.
|
||||
Keep count of these at the table; the tracker below is the other classes’ slots.
|
||||
</p>
|
||||
)}
|
||||
{sheet.spellSlots ? (
|
||||
<SpellSlotTracker
|
||||
characterId={characterId}
|
||||
@@ -1138,12 +1154,38 @@ export function CharacterSheetPage() {
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{character.classes.length > 1 && (
|
||||
<p className="section-label" style={{ margin: '0.5rem 0 0.3rem' }}>
|
||||
{CLASS_LABELS[character.characterClass]} {character.classes[0].level}
|
||||
{character.subclassName ? ` (${character.subclassName})` : ''}
|
||||
</p>
|
||||
)}
|
||||
<ProgressionTimeline
|
||||
characterClass={character.characterClass}
|
||||
subclass={character.subclass}
|
||||
subclassName={character.subclassName}
|
||||
currentLevel={character.level}
|
||||
currentLevel={character.classes[0]?.level ?? character.level}
|
||||
/>
|
||||
{character.classes.slice(1).map((c) => (
|
||||
<div key={c.characterClass} className="mt-md">
|
||||
<p className="section-label" style={{ margin: '0 0 0.3rem' }}>
|
||||
{CLASS_LABELS[c.characterClass]} {c.level}
|
||||
{c.subclassName ? ` (${c.subclassName})` : ''}
|
||||
</p>
|
||||
<ProgressionTimeline characterClass={c.characterClass} subclass={c.subclass} subclassName={c.subclassName} currentLevel={c.level} />
|
||||
</div>
|
||||
))}
|
||||
{campaignData?.campaign.multiclassEnabled && (
|
||||
<details className="mt-md">
|
||||
<summary className="section-label" style={{ cursor: 'pointer' }}>
|
||||
Multiclass routes from here
|
||||
</summary>
|
||||
<MulticlassRoutes
|
||||
classes={character.classes}
|
||||
scores={Object.fromEntries(Object.entries(sheet.abilities).map(([a, d]) => [a, d.final])) as Record<Ability, number>}
|
||||
/>
|
||||
</details>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ export function PartyOverviewPage() {
|
||||
)}
|
||||
</td>
|
||||
<td data-label="Species">{c.species ? SPECIES_LABELS[c.species] : '—'}</td>
|
||||
<td data-label="Class">{c.characterClass ? classLabel(c.characterClass, c.subclassName) : inProgress ? 'Building…' : '—'}</td>
|
||||
<td data-label="Class">{c.characterClass ? classLabel(c.characterClass, c.subclassName, c.classes) : inProgress ? 'Building…' : '—'}</td>
|
||||
<td data-label="Level">
|
||||
{c.level}
|
||||
{!inProgress && data?.campaign.trackXp && (
|
||||
|
||||
Reference in New Issue
Block a user