Remove unused group score helper
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user