feat: full names and better default names

This commit is contained in:
TrèsAbhi committed 2024-01-21 16:03:38 -06:00
1 parent 9f347fa1f2
commit f368769068
2 files changed
+8 -1

No files matched your search

+7 -1
View File
@@ -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: