1
0
mirror of synced 2024-12-04 19:17:58 +01:00

more randomizing

This commit is contained in:
ghkkk090 2022-09-06 10:21:10 +07:00
parent 2f305549d0
commit d396da7cea

View File

@ -441,8 +441,14 @@ export default class CarModule extends Module {
} }
} }
// Randomize regionId
let randomRegionId: number = 18;
for(let i=0; i<5; i++)
{
randomRegionId = Math.floor(Math.random() * 47) + 1;
}
// Default car values // Default car values
let randomRegionId = Math.floor(Math.random() * 47) + 1;
let carInsert = { let carInsert = {
userId: user.id, userId: user.id,
manufacturer: body.car.manufacturer!, manufacturer: body.car.manufacturer!,