mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Aktualizacja 1.0.5
This commit is contained in:
+12
-1
@@ -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;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user