Remove unused group score helper

This commit is contained in:
Jan Bader
2026-06-17 22:31:54 +02:00
parent f763c9794c
commit 40471cb1c5
-7
View File
@@ -610,13 +610,6 @@ function percentChange(from, to) {
return ((to / from) - 1) * 100; 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) { function scorePiece(piece, profile, totals) {
const baseAverageDamage = Math.max(1, totals.baseDamage / 6); const baseAverageDamage = Math.max(1, totals.baseDamage / 6);
const baseAverageHealth = Math.max(1, totals.baseHealth / 6); const baseAverageHealth = Math.max(1, totals.baseHealth / 6);