feat: migrate tanks

This commit is contained in:
tresabhi committed 2025-05-16 22:11:01 -05:00
1 parent a8eb751048
commit 2cfc65a990
19 files changed
+216 -155

No files matched your search

@@ -892,7 +892,13 @@ export async function definitions() {
const hullArmor: Armor = { spaced: [], thickness: {} };
const equipment = tankDefinition.root.optDevicePreset;
tankStringIdMap[`${nation}:${tankKey}`] = tankId;
const slug = slugs.get(tank.id)!;
const slug = slugs.get(tankId);
if (slug === undefined) {
throw new Error(
`Could not find slug for ${nation}/${tankKey} (${tankId})`,
);
}
if (tank.sellPrice) {
tankPrice = {