From 40471cb1c54ce85fb2365171ab9165c0033a3586 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 17 Jun 2026 22:31:54 +0200 Subject: [PATCH] Remove unused group score helper --- app.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app.js b/app.js index 09a8a7d..373211f 100644 --- a/app.js +++ b/app.js @@ -610,13 +610,6 @@ function percentChange(from, to) { return ((to / from) - 1) * 100; } -function calculateGroupScore(totals, profile, groups, baseKind) { - const effectScore = EFFECTS.filter((effect) => groups.includes(effect.group)) - .reduce((sum, effect) => sum + (totals.effects[effect.id] / effect.cap) * 100 * profile.weights[effect.id], 0); - const baseScore = baseKind === "health" ? totals.baseHealth * profile.baseHealth : totals.baseDamage * profile.baseDamage; - return effectScore + baseScore; -} - function scorePiece(piece, profile, totals) { const baseAverageDamage = Math.max(1, totals.baseDamage / 6); const baseAverageHealth = Math.max(1, totals.baseHealth / 6);