mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
Poprawka masy ET41
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user