Poprawka masy ET41

This commit is contained in:
2022-08-25 15:15:28 +02:00
parent fe1062b1a0
commit 4787dabefc
+10 -3
View File
@@ -40,6 +40,10 @@ export function locoDataList(state: IStore) {
) { ) {
mass = 83; mass = 83;
} }
if (locoType.startsWith('ET')) {
mass = 167;
}
} }
// Spalinowozy // Spalinowozy
@@ -157,10 +161,13 @@ export function chosenRealStock(state: IStore) {
}, [] as string[]) }, [] as string[])
.join(';'); .join(';');
const realStockObj = Object.values(state.readyStockList).find(
(readyStock) => readyStock.stockString == currentStockString
);
const realStockObj = Object.values(state.readyStockList).find((readyStock) => readyStock.stockString == currentStockString); state.chosenRealStockName = realStockObj
? `${realStockObj.type} ${realStockObj.number} ${realStockObj.name}`
state.chosenRealStockName = realStockObj ? `${realStockObj.type} ${realStockObj.number} ${realStockObj.name}` : undefined; : undefined;
return realStockObj; return realStockObj;
} }