mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 19:48:11 +00:00
hotfixy pod 2022.2.2
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pojazdownik",
|
||||
"version": "1.3.0dev",
|
||||
"version": "1.3.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -18,6 +18,8 @@ export default defineComponent({
|
||||
getStockObject(vehicle: Vehicle, cargo?: ICargo | null, count = 1): IStock {
|
||||
const isLoco = isLocomotive(vehicle);
|
||||
|
||||
console.log(vehicle.type);
|
||||
|
||||
return {
|
||||
id: this.getStockId(),
|
||||
type: vehicle.type,
|
||||
|
||||
@@ -81,7 +81,7 @@ export function carDataList(state: IStore) {
|
||||
}
|
||||
|
||||
export function totalMass(state: IStore) {
|
||||
return state.stockList.reduce(
|
||||
return ~~state.stockList.reduce(
|
||||
(acc, stock) => acc + (stock.cargo ? stock.cargo.totalMass : stock.mass) * stock.count,
|
||||
0
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user