add skills

This commit is contained in:
tresabhi committed 2026-10-13 20:37:53 -05:00
1 parent bc6257a0c3
commit 1416d64e34
20 files changed
+196 -55

No files matched your search

@@ -1,12 +1,13 @@
import { SkillDefinitions } from "..";
import { SkillDefinitions } from "@blitzkit/protos";
import { permanentSkills } from "../blitz/permanentSkills";
import { MAX_SKILL_LEVEL } from "../config/skills";
export function createDefaultSkills(skillDefinitions: SkillDefinitions) {
const skills: Record<string, number> = {};
Object.values(skillDefinitions.classes).forEach((tankSkills) => {
tankSkills.skills.forEach((skill) => {
skills[skill] = permanentSkills.includes(skill) ? 7 : 0;
skills[skill] = permanentSkills.includes(skill) ? MAX_SKILL_LEVEL : 0;
});
});
@@ -43,19 +43,6 @@ export const TANK_ICONS_COLLECTOR: Record<TankClass, string> = {
[TankClass.TANK_CLASS_HEAVY]: "https://i.imgur.com/8xRf3nc.png",
};
export const TIERS = times(10, (index) => index + 1);
export const TIER_ROMAN_NUMERALS: Record<number, string> = {
1: "I",
2: "II",
3: "III",
4: "IV",
5: "V",
6: "VI",
7: "VII",
8: "VIII",
9: "IX",
10: "X",
11: "XI",
};
export const flags: Record<string, string> = {
ussr: "<:ussr:1218421042033197197>",
+1
View File
@@ -1,3 +1,4 @@
export * from "./gunTypeOrder";
export * from "./skills";
export * from "./tankClassOrder";
export * from "./treeTypeOrder";
+1
View File
@@ -0,0 +1 @@
export const MAX_SKILL_LEVEL = 7;