From 835b835b7309b253d83bde3c40206602722cde5f Mon Sep 17 00:00:00 2001 From: jrmyr Date: Mon, 28 Apr 2025 20:17:33 +0000 Subject: [PATCH] Scorekeeper update. --- _opt/scorekeeper.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_opt/scorekeeper.js b/_opt/scorekeeper.js index 7990ea4..777bcf9 100644 --- a/_opt/scorekeeper.js +++ b/_opt/scorekeeper.js @@ -339,11 +339,11 @@ async function runDecay(client, guildId) { * Calculate score based on formula */ function calculateScore(data, baseOutput, commendationValue, citationValue) { - // Score = ((Commendations * CommendationValue) - (Citations * CitationValue)) + (Input / (Output + BaseOutput)) - const permanentModifier = (data.commendations * commendationValue) - (data.citations * citationValue); + // Score = (1 + (Commendations * CommendationValue) - (Citations * CitationValue)) * (Input / (Output + BaseOutput)) * 100 + const multiplier = 1 + (data.commendations * commendationValue) - (data.citations * citationValue); const activityScore = data.input / (data.output + baseOutput); - return permanentModifier + activityScore; + return multiplier * activityScore * 100; } /**