v4.0 โข Multi-DM โข Character Sheets โข Ambient Music
No users
No pending requests
No characters yet. Click "+ New" to create one.
'; document.getElementById('charEditor').style.display = 'none'; document.getElementById('deleteCharBtn').style.display = 'none'; renderCharTray(); return; } el.innerHTML = characters.map((c, i) => { const hpPct = c.hpMax > 0 ? Math.max(0, Math.min(100, Math.round((c.hp / c.hpMax) * 100))) : 0; return `No attacks yet. Click "+ Add Attack / Weapon" below.
'; return; } el.innerHTML = `No character selected. Create or select a character first.
'; return; } const cls = c.class || 'Fighter'; const level = parseInt(c.level) || 1; const data = CLASS_FEATURES[cls]; if (!data) { panel.innerHTML = `No feature data for ${cls} yet.
`; return; } if (!c.featureChoices) c.featureChoices = {}; const visible = data.features.filter(f => f.level <= level); let html = `No features yet โ increase your level in the Basics tab.
'; } visible.forEach(f => { const choiceKey = `${cls}_${f.name}`; const savedChoice = c.featureChoices[choiceKey] || ''; let choiceHTML = ''; if (f.type === 'choice' && f.choices) { const opts = f.choices.map(ch => ``).join(''); choiceHTML = `๐ Coming at higher levels:
${locked.map(f=>`Lv ${f.level} ${f.name}`).join(' ยท ')}