mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-02-26 17:21:39 +01:00
Add stuff, fix stuff, the usual
This commit is contained in:
parent
23fc62b5a6
commit
d1ac091d79
@ -0,0 +1,2 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Car" ADD COLUMN "regionId" INTEGER NOT NULL DEFAULT 0;
|
@ -36,6 +36,7 @@ model Car {
|
|||||||
carId Int @id @default(autoincrement())
|
carId Int @id @default(autoincrement())
|
||||||
name String
|
name String
|
||||||
manufacturer Int
|
manufacturer Int
|
||||||
|
regionId Int @default(0)
|
||||||
model Int
|
model Int
|
||||||
visualModel Int
|
visualModel Int
|
||||||
customColor Int @default(0)
|
customColor Int @default(0)
|
||||||
|
@ -22,25 +22,24 @@ export default class GameModule extends Module {
|
|||||||
if (maxConsecutiveWins > body.stResult!.stConsecutiveWins!) {
|
if (maxConsecutiveWins > body.stResult!.stConsecutiveWins!) {
|
||||||
maxConsecutiveWins = body.stResult!.stConsecutiveWins!;
|
maxConsecutiveWins = body.stResult!.stConsecutiveWins!;
|
||||||
}
|
}
|
||||||
|
let divcount = body.stResult!.stClearDivCount;
|
||||||
|
let saveEx: any = {};
|
||||||
|
if (divcount !== null && divcount !== undefined) {
|
||||||
|
saveEx.stClearDivCount = divcount;
|
||||||
|
}
|
||||||
await prisma.car.update({
|
await prisma.car.update({
|
||||||
where: {
|
where: {
|
||||||
carId: body.carId,
|
carId: body.carId
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
title: body.car!.title!,
|
|
||||||
level: body.car!.level!,
|
|
||||||
tunePower: body.car!.tunePower!,
|
|
||||||
tuneHandling: body.car!.tuneHandling!,
|
|
||||||
stClearBits: body.stResult!.stClearBits!,
|
stClearBits: body.stResult!.stClearBits!,
|
||||||
tuningPoints: body.stResult!.tuningPoint!,
|
tuningPoints: body.stResult!.tuningPoint!,
|
||||||
stPlayCount: body.stResult!.stPlayCount,
|
stPlayCount: body.stResult!.stPlayCount,
|
||||||
stClearCount: body.stResult!.stClearCount!,
|
stClearCount: body.stResult!.stClearCount!,
|
||||||
stClearDivCount: body.stResult!.stClearDivCount!,
|
|
||||||
stCompleted100Episodes: body.stResult!.stCompleted_100Episodes!,
|
stCompleted100Episodes: body.stResult!.stCompleted_100Episodes!,
|
||||||
stConsecutiveWins: body.stResult!.stConsecutiveWins!,
|
stConsecutiveWins: body.stResult!.stConsecutiveWins!,
|
||||||
stConsecutiveWinsMax: maxConsecutiveWins,
|
stConsecutiveWinsMax: maxConsecutiveWins,
|
||||||
odometer: body.odometer,
|
...saveEx!
|
||||||
playCount: body.playCount
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
@ -101,6 +100,19 @@ export default class GameModule extends Module {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
await prisma.car.update({
|
||||||
|
where: {
|
||||||
|
carId: body.carId,
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
odometer: body.odometer,
|
||||||
|
playCount: body.playCount,
|
||||||
|
level: body.car!.level!,
|
||||||
|
title: body.car!.title!,
|
||||||
|
tunePower: body.car!.tunePower!,
|
||||||
|
tuneHandling: body.car!.tuneHandling!,
|
||||||
|
}
|
||||||
|
})
|
||||||
await prisma.carSettings.update({
|
await prisma.carSettings.update({
|
||||||
where: {
|
where: {
|
||||||
dbId: car!.carSettingsDbId
|
dbId: car!.carSettingsDbId
|
||||||
@ -210,8 +222,8 @@ export default class GameModule extends Module {
|
|||||||
false, //TUTORIAL_ID_GHOST_STAMP
|
false, //TUTORIAL_ID_GHOST_STAMP
|
||||||
false, //TUTORIAL_ID_GHOST_STAMP_DECLINED
|
false, //TUTORIAL_ID_GHOST_STAMP_DECLINED
|
||||||
false, //TUTORIAL_ID_GHOST_STAMP_FRIENDS
|
false, //TUTORIAL_ID_GHOST_STAMP_FRIENDS
|
||||||
false, //TUTORIAL_ID_TERMINAL_SCRATCH
|
true, //TUTORIAL_ID_TERMINAL_SCRATCH
|
||||||
false, //TUTORIAL_ID_TURN_SCRATCH_SHEET
|
true, //TUTORIAL_ID_TURN_SCRATCH_SHEET
|
||||||
false, //TUTORIAL_ID_INVITE_FRIEND_CAMPAIGN
|
false, //TUTORIAL_ID_INVITE_FRIEND_CAMPAIGN
|
||||||
false, //TUTORIAL_ID_CAR_COUPON_FULL_TUNED_RECEIVABLE
|
false, //TUTORIAL_ID_CAR_COUPON_FULL_TUNED_RECEIVABLE
|
||||||
false, //TUTORIAL_ID_VS_CONTINUE_TICKET
|
false, //TUTORIAL_ID_VS_CONTINUE_TICKET
|
||||||
@ -539,7 +551,8 @@ export default class GameModule extends Module {
|
|||||||
tunePower: body.car.tunePower!,
|
tunePower: body.car.tunePower!,
|
||||||
tuneHandling: body.car.tuneHandling!,
|
tuneHandling: body.car.tuneHandling!,
|
||||||
carSettingsDbId: settings.dbId,
|
carSettingsDbId: settings.dbId,
|
||||||
carStateDbId: state.dbId
|
carStateDbId: state.dbId,
|
||||||
|
country: body.car.country!,
|
||||||
};
|
};
|
||||||
let additionalInsert = {}
|
let additionalInsert = {}
|
||||||
if (fullTuneUsed) {
|
if (fullTuneUsed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user