Aktualizacja 1.0.5

This commit is contained in:
2021-11-17 14:16:23 +01:00
parent 60d8da9598
commit 0459bbb90c
9 changed files with 592 additions and 128 deletions
+12 -1
View File
@@ -142,7 +142,6 @@ export const carDataList = computed(() => Object.keys(vehicleDataJSON).reduce(
id: cargo.split(":")[0],
totalMass: Number(cargo.split(":")[1]),
})) : [],
mass: carPropsData?.mass || 0,
length: carPropsData?.length || 0,
});
@@ -272,6 +271,18 @@ export const warnings = {
if (headingLoco.type.startsWith("SM") && totalMass.value > 2400) return true;
return false;
}),
tooManyLocos: computed(() => {
if (Store.stockList.reduce((acc, stock) => {
if (!stock.isLoco) return acc;
acc += stock.count;
return acc;
}, 0) > 2) return true;
return false;
})
}