feat: class, type and nation

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
TrèsAbhiandCopilot committed 2026-04-29 15:17:59 -05:00
1 parent 76dc9f0742
commit 0442c789f1
2 files changed
+76 -18

No files matched your search

+58
View File
@@ -1,4 +1,62 @@
{
"nations": {
"0": "Unspecified",
"1": "USSR",
"2": "Germany",
"3": "USA",
"4": "China",
"5": "France",
"6": "UK",
"7": "Japan",
"8": "European",
"9": "Poland",
"10": "Australia",
"11": "Canada",
"12": "Italy",
"13": "Finland",
"14": "Czechoslovakia",
"15": "Hybrid Nation",
"16": "GDR",
"17": "Ireland",
"18": "Scotland",
"19": "Sweden",
"20": "Argo Coalition",
"21": "Titan Labs",
"22": "Defenders",
"23": "Progresston",
"24": "Wasteland",
"25": "Hunter's Moon",
"26": "Cold Front",
"27": "The Explorers",
"28": "Fablegear, Inc.",
"29": "Outlaws",
"30": "Girls Und Panzer",
"31": "Dune",
"32": "Terminator",
"33": "Warhammer 40,000",
"34": "Valkyria Chronicles",
"35": "Mecha",
"36": "TMNT",
"37": "Star Trek"
},
"types": {
"0": "Unspecified",
"1": "Common",
"2": "Premium",
"3": "Collectible"
},
"classes": {
"full": {
"0": "Unspecified",
"1": "Heavy",
"2": "Light",
"3": "Medium",
"4": "Tank Destroyer"
}
},
"tiers": {
"vintage": "Vintage",
"four": "IV",
@@ -50,6 +50,24 @@ export const characteristicsOrder: CharacteristicsOrder = [
return gameStrings[output as string];
},
},
{
name: "class",
render({ output, strings }) {
return strings.classes.full[output as TankClass];
},
},
{
name: "type",
render({ output, strings }) {
return strings.types[output as TankType];
},
},
{
name: "nation",
render({ output, strings }) {
return strings.nations[output as Nation];
},
},
{
name: "tier",
render({ output, strings }) {
@@ -62,24 +80,6 @@ export const characteristicsOrder: CharacteristicsOrder = [
return strings.tiers[name as keyof typeof strings.tiers];
},
},
{
name: "nation",
render({ output }) {
return Nation[output as Nation];
},
},
{
name: "class",
render({ output }) {
return TankClass[output as TankClass];
},
},
{
name: "type",
render({ output }) {
return TankType[output as TankType];
},
},
{ name: "compensation" },
{ name: "id" },
{ name: "slug" },