feat: optimized tank icon building

This commit is contained in:
TrèsAbhi committed 2024-01-17 12:31:07 -06:00
1 parent 26852981ba
commit 0692933148
4 files changed
+36 -42

No files matched your search

+2 -2
View File
@@ -27,8 +27,6 @@ export async function buildTankModels() {
await Promise.all(
nations.map(async (nation) => {
if (nation !== 'japan') return;
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
@@ -45,6 +43,8 @@ export async function buildTankModels() {
Object.entries(tanks.root).map(async ([tankKey, tank]) => {
const id = toUniqueId(nation, tank.id);
if (id !== 26897) return;
console.log(`Building model ${id} @ ${nation}/${tankKey}`);
const parameters = await readYAMLDVPL<TankParameters>(