diff --git a/src/routes/graphs/excel-style/+page.svelte b/src/routes/graphs/excel-style/+page.svelte index a27ffc1..58cb18a 100644 --- a/src/routes/graphs/excel-style/+page.svelte +++ b/src/routes/graphs/excel-style/+page.svelte @@ -64,6 +64,21 @@ pageData.ethicsData = new Map(); pageData.gestaltCount = { total: 0, machines: 0 }; + chellarisData.ethics.forEach((ethic, id) => { + const newEthicsData: { + machine: boolean; + displayName: string; + regular: number; + fanatic: number; + } = { + machine: ethic.machine, + displayName: ethic.displayName, + regular: 0, + fanatic: 0 + }; + pageData.ethicsData.set(id, newEthicsData); + }) + tmpGameData.empires.forEach((empire, index) => { if (selectedGameGroups.includes(empire.group)) { groupEmpires.set(index, empire); @@ -187,7 +202,7 @@ {#each pageData.ethicsData as ethicData} {#if !ethicData[1].machine}