mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Poprawka masy ET41
This commit is contained in:
@@ -40,6 +40,10 @@ export function locoDataList(state: IStore) {
|
||||
) {
|
||||
mass = 83;
|
||||
}
|
||||
|
||||
if (locoType.startsWith('ET')) {
|
||||
mass = 167;
|
||||
}
|
||||
}
|
||||
|
||||
// Spalinowozy
|
||||
@@ -157,10 +161,13 @@ export function chosenRealStock(state: IStore) {
|
||||
}, [] as string[])
|
||||
.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}` : undefined;
|
||||
state.chosenRealStockName = realStockObj
|
||||
? `${realStockObj.type} ${realStockObj.number} ${realStockObj.name}`
|
||||
: undefined;
|
||||
|
||||
return realStockObj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user