mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-04 20:18:12 +00:00
Poprawki generatora
This commit is contained in:
@@ -162,7 +162,7 @@ export default defineComponent({
|
|||||||
return acc;
|
return acc;
|
||||||
}, [] as { carWagon: ICarWagon; cargo?: ICargo }[]);
|
}, [] as { carWagon: ICarWagon; cargo?: ICargo }[]);
|
||||||
|
|
||||||
this.store.stockList.length = 0;
|
this.store.stockList.length = this.store.stockList[0]?.isLoco ? 1 : 0;
|
||||||
|
|
||||||
new Array(this.maxCarCount).fill(0).forEach(() => {
|
new Array(this.maxCarCount).fill(0).forEach(() => {
|
||||||
const { carWagon, cargo } = generatedChosenStockList[~~(Math.random() * generatedChosenStockList.length)];
|
const { carWagon, cargo } = generatedChosenStockList[~~(Math.random() * generatedChosenStockList.length)];
|
||||||
@@ -315,3 +315,4 @@ h2 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user