feat: skip bot definitions

This commit is contained in:
TrèsAbhi committed 2024-04-08 22:04:50 -05:00
1 parent 2bfd8286a4
commit 5f39ba55f6
1 file changed
+3
+3
View File
@@ -334,6 +334,7 @@ const blitzShellKindToBLitzkrieg: Record<ShellKind, ShellType> = {
const missingStrings: Record<string, string> = {
'#artefacts:tungstentip/name': 'Tungsten Shells',
};
const botPattern = /^.+((tutorial_bot(\d+)?)|(TU(R?)))$/;
export async function definitions(production: boolean) {
console.log('Building definitions...');
@@ -420,6 +421,8 @@ export async function definitions(production: boolean) {
);
for (const tankKey in tankList.root) {
if (botPattern.test(tankKey)) continue;
const gunXps = new Map<number, number>();
const turretXps = new Map<number, number>();
const engineXps = new Map<number, number>();