fix: min penetration chance 0

This commit is contained in:
TrèsAbhi committed 2024-01-19 23:33:27 -06:00
1 parent 59abda933f
commit 3cd23cd718
7 files changed
+21 -42

No files matched your search

+2 -2
View File
@@ -20,6 +20,8 @@ export async function buildTankArmors() {
await Promise.all(
nations.map(async (nation) => {
if (nation !== 'usa') return;
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
@@ -28,8 +30,6 @@ export async function buildTankArmors() {
Object.entries(tanks.root).map(async ([tankKey, tank]) => {
const id = toUniqueId(nation, tank.id);
if (id !== 26897) return;
console.log(`Building armor ${id} @ ${nation}/${tankKey}`);
const model = await extractArmor(DATA, `${nation}-${tankKey}`);
+2 -2
View File
@@ -27,6 +27,8 @@ export async function buildTankModels() {
await Promise.all(
nations.map(async (nation) => {
if (nation !== 'usa') return;
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);
@@ -43,8 +45,6 @@ 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>(