mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +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]
|
? strings[tank.shortUserString]
|
||||||
: undefined) ??
|
: undefined) ??
|
||||||
strings[tank.userString] ??
|
strings[tank.userString] ??
|
||||||
tankKey.replaceAll('_', ' '),
|
tankKey
|
||||||
|
.replaceAll('_', ' ')
|
||||||
|
.replace(/^[A-Z]+([a-z]+)?([0-9]+)? /, ''),
|
||||||
nation,
|
nation,
|
||||||
tree_type: (tank.sellPrice ? 'gold' in tank.sellPrice : false)
|
tree_type: (tank.sellPrice ? 'gold' in tank.sellPrice : false)
|
||||||
? 'collector'
|
? 'collector'
|
||||||
@@ -353,6 +355,10 @@ export async function buildDefinitions(production: boolean) {
|
|||||||
turrets: [],
|
turrets: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (strings[tank.userString] !== tankDefinitions[tankId].name) {
|
||||||
|
tankDefinitions[tankId].name_full = strings[tank.userString];
|
||||||
|
}
|
||||||
|
|
||||||
modelDefinitions[tankId] = {
|
modelDefinitions[tankId] = {
|
||||||
armor: hullArmor,
|
armor: hullArmor,
|
||||||
trackThickness:
|
trackThickness:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export interface TankDefinition {
|
|||||||
id: number;
|
id: number;
|
||||||
nation: string;
|
nation: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
name_full?: string;
|
||||||
tree_type: TreeTypeString;
|
tree_type: TreeTypeString;
|
||||||
tier: Tier;
|
tier: Tier;
|
||||||
type: TankType;
|
type: TankType;
|
||||||
|
|||||||
Reference in new issue
Block a user