Update game.ts
This commit is contained in:
parent
ed05c81c55
commit
142df1c66f
@ -1173,6 +1173,17 @@ export default class GameModule extends Module {
|
|||||||
userItemId: true
|
userItemId: true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let wsString = "";
|
||||||
|
let wsFont = 0;
|
||||||
|
if(user.cars[0].windowStickerString !== null && user.cars[0].windowStickerString !== undefined && user.cars[0].windowStickerString !== ''){
|
||||||
|
wsString = user.cars[0].windowStickerString;
|
||||||
|
wsFont = user.cars[0].windowStickerFont;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
wsString = 'WANGAN';
|
||||||
|
wsFont = 0;
|
||||||
|
}
|
||||||
|
|
||||||
let msg = {
|
let msg = {
|
||||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||||
@ -1182,8 +1193,8 @@ export default class GameModule extends Module {
|
|||||||
carStates,
|
carStates,
|
||||||
// 5 cars in-game, 200 cars on terminal
|
// 5 cars in-game, 200 cars on terminal
|
||||||
cars: user.cars.slice(0, body.maxCars),
|
cars: user.cars.slice(0, body.maxCars),
|
||||||
windowStickerString: user.cars[0].windowStickerString,
|
windowStickerString: wsString,
|
||||||
windowStickerFont: user.cars[0].windowStickerFont,
|
windowStickerFont: wsFont,
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
banapassportAmId: 1,
|
banapassportAmId: 1,
|
||||||
mbId: 1,
|
mbId: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user