mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: full names and better default names
This commit is contained in:
1 parent
9f347fa1f2
commit
f368769068
2 files changed
+8
-1
No files matched your search
@@ -334,7 +334,9 @@ export async function buildDefinitions(production: boolean) {
|
||||
? strings[tank.shortUserString]
|
||||
: undefined) ??
|
||||
strings[tank.userString] ??
|
||||
tankKey.replaceAll('_', ' '),
|
||||
tankKey
|
||||
.replaceAll('_', ' ')
|
||||
.replace(/^[A-Z]+([a-z]+)?([0-9]+)? /, ''),
|
||||
nation,
|
||||
tree_type: (tank.sellPrice ? 'gold' in tank.sellPrice : false)
|
||||
? 'collector'
|
||||
@@ -353,6 +355,10 @@ export async function buildDefinitions(production: boolean) {
|
||||
turrets: [],
|
||||
};
|
||||
|
||||
if (strings[tank.userString] !== tankDefinitions[tankId].name) {
|
||||
tankDefinitions[tankId].name_full = strings[tank.userString];
|
||||
}
|
||||
|
||||
modelDefinitions[tankId] = {
|
||||
armor: hullArmor,
|
||||
trackThickness:
|
||||
|
||||
@@ -17,6 +17,7 @@ export interface TankDefinition {
|
||||
id: number;
|
||||
nation: string;
|
||||
name: string;
|
||||
name_full?: string;
|
||||
tree_type: TreeTypeString;
|
||||
tier: Tier;
|
||||
type: TankType;
|
||||
|
||||
Reference in new issue
Block a user