Analyse-Tab: Plan-Ref zeigt Spieler des Plans im Spielerfeld

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-23 09:54:49 +02:00
parent fb58226be8
commit 2e8818bb03

View File

@ -595,7 +595,13 @@
planRefId = id;
refEvents = planToRefEvents(plan);
refFightStart = plan.source?.fightStart ?? 0;
refPlayers = [];
refPlayers = (plan.jobComposition ?? [])
.map((job, i) => {
const name = plan.playerRoster?.[i]?.name ?? '';
if (!name || !job) return null;
return { name, type: job, role: PLAN_JOB_ROLE[job] ?? 'dps' };
})
.filter(Boolean);
renderRefPlayers();
renderTimeline(lastEvents, lastFightStart);