diff --git a/src/commands/stats/embeds/base-match-embed.mts b/src/commands/stats/embeds/base-match-embed.mts index 3f02e5c..aa847c8 100644 --- a/src/commands/stats/embeds/base-match-embed.mts +++ b/src/commands/stats/embeds/base-match-embed.mts @@ -20,7 +20,7 @@ export abstract class BaseMatchEmbed { ["KDA", CoreStats.KDA.toString()], ["Headshot kills", CoreStats.HeadshotKills.toString()], ["Shots H:F", `${CoreStats.ShotsHit.toString()}:${CoreStats.ShotsFired.toString()}`], - ["Accuracy", CoreStats.Accuracy.toString()], + ["Accuracy", `${CoreStats.Accuracy.toString()}%`], ["Damage D:T", `${CoreStats.DamageDealt.toString()}:${CoreStats.DamageTaken.toString()}`], ["Av life duration", this.haloService.getReadableDuration(CoreStats.AverageLifeDuration)], ["Av damage/life", (CoreStats.DamageDealt / CoreStats.Deaths).toFixed(2)], diff --git a/src/commands/stats/stats.mts b/src/commands/stats/stats.mts index e1eae6c..8cdfb55 100644 --- a/src/commands/stats/stats.mts +++ b/src/commands/stats/stats.mts @@ -207,7 +207,7 @@ export class StatsCommand extends BaseCommand { for (const seriesMatch of series) { const gameTypeAndMap = await haloService.getGameTypeAndMap(seriesMatch); const gameDuration = haloService.getReadableDuration(seriesMatch.MatchInfo.Duration); - const gameScore = haloService.getGameScore(seriesMatch); + const gameScore = haloService.getMatchScore(seriesMatch); tableData.push([gameTypeAndMap, gameDuration, gameScore]); } diff --git a/src/services/halo/halo.mts b/src/services/halo/halo.mts index b9e9b8f..11a0040 100644 --- a/src/services/halo/halo.mts +++ b/src/services/halo/halo.mts @@ -112,10 +112,10 @@ export class HaloService { async getGameTypeAndMap(match: MatchStats) { const mapName = await this.getMapName(match); - return `${this.getGameVariant(match)}: ${mapName}`; + return `${this.getMatchVariant(match)}: ${mapName}`; } - getGameScore(match: MatchStats) { + getMatchScore(match: MatchStats) { const scoreCompare = match.Teams.map((team) => team.Stats.CoreStats.Score); if (match.MatchInfo.GameVariantCategory === GameVariantCategory.MultiplayerOddball) { @@ -179,7 +179,7 @@ export class HaloService { return mapData.PublicName; } - private getGameVariant(match: MatchStats) { + private getMatchVariant(match: MatchStats) { switch (match.MatchInfo.GameVariantCategory) { case GameVariantCategory.MultiplayerAttrition: return "Attrition";