fix: better approximation message and players with 0 wins are omitted

This commit is contained in:
TresAbhi committed 2023-09-08 16:38:08 +00:00
1 parent bac39ca176
commit 63a8a67771
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -26,7 +26,9 @@ files.forEach(async (file) => {
bundle: true,
sourcemap: true,
minify: true,
minifyIdentifiers: false, // cause goofy errors
minifySyntax: true,
minifyWhitespace: true,
logLevel: 'info',
});
+2 -1
View File
@@ -78,6 +78,7 @@ export const clanEventCommand: CommandRegistry = {
0,
) / 2
).toFixed(0)}\n${jointVictories
.filter(({ joinVictory }) => joinVictory)
.sort((a, b) => b.joinVictory - a.joinVictory)
.map(
({ id, joinVictory }) =>
@@ -87,7 +88,7 @@ export const clanEventCommand: CommandRegistry = {
embedWarning(
'This is an approximation!',
'Wargaming provides use with little to no information about platoons. Platooning with mixed clans may inflate the number and platooning in non-regular battles may deflate.',
"Wargaming provides very little information about platoons publicly. Caveats:\n- Players in two different clans platooning artificially inflates the total count\n- Game-mode battles aren't counted since Wargaming doesn't track them",
),
];
},