+
{{ stock.isLoco ? stock.type : getCarSpecFromType(stock.type) }}
- ({{ stock.cargo?.id }})
-
- {{ stock.length }}m
-
- {{ stock.cargo ? stock.cargo.totalMass : stock.mass }}t
+ {{ stock.cargo.id }}
+ {{ stock.length }}m
+ {{ stock.cargo ? stock.cargo.totalMass : stock.mass }}t
+ {{ stock.maxSpeed }}km/h
@@ -110,13 +121,24 @@
+
+
diff --git a/src/store.ts b/src/store.ts
index a668e8c..3069745 100644
--- a/src/store.ts
+++ b/src/store.ts
@@ -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;
})
}
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 8480bdb..705a254 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -34,11 +34,19 @@ a {
}
}
+p {
+ font-size: 1.2em;
+ font-weight: bold;
+ color: $accentColor;
+}
+
select,
option,
input,
button {
font-family: "Lato", sans-serif;
+ font-size: 1em;
+
}
button {