add more ocm reward
This commit is contained in:
parent
e7d498f6dd
commit
a11b6ea3e2
@ -241,6 +241,7 @@ export default class GhostModule extends Module {
|
|||||||
if(checkOneParticipant)
|
if(checkOneParticipant)
|
||||||
{
|
{
|
||||||
let itemId = 0;
|
let itemId = 0;
|
||||||
|
|
||||||
// 16th - C1
|
// 16th - C1
|
||||||
if(ocmEventDate.competitionId === 1)
|
if(ocmEventDate.competitionId === 1)
|
||||||
{
|
{
|
||||||
@ -286,6 +287,66 @@ export default class GhostModule extends Module {
|
|||||||
{
|
{
|
||||||
itemId = 47;
|
itemId = 47;
|
||||||
}
|
}
|
||||||
|
// 1st - C1
|
||||||
|
else if(ocmEventDate.competitionId === 10)
|
||||||
|
{
|
||||||
|
itemId = 5;
|
||||||
|
}
|
||||||
|
// 2nd - Osaka
|
||||||
|
else if(ocmEventDate.competitionId === 11)
|
||||||
|
{
|
||||||
|
itemId = 11;
|
||||||
|
}
|
||||||
|
// 3rd - Fukuoka
|
||||||
|
else if(ocmEventDate.competitionId === 12)
|
||||||
|
{
|
||||||
|
itemId = 17;
|
||||||
|
}
|
||||||
|
// 4th - Nagoya
|
||||||
|
else if(ocmEventDate.competitionId === 13)
|
||||||
|
{
|
||||||
|
itemId = 23;
|
||||||
|
}
|
||||||
|
// 5th - Yaesu
|
||||||
|
else if(ocmEventDate.competitionId === 14)
|
||||||
|
{
|
||||||
|
itemId = 29;
|
||||||
|
}
|
||||||
|
// 9th - Hakone (Mt. Taikan)
|
||||||
|
else if(ocmEventDate.competitionId === 15)
|
||||||
|
{
|
||||||
|
itemId = 53;
|
||||||
|
}
|
||||||
|
// 10th - Sub-center(Shibuya/Shinjuku)
|
||||||
|
else if(ocmEventDate.competitionId === 16)
|
||||||
|
{
|
||||||
|
itemId = 93;
|
||||||
|
}
|
||||||
|
// 11th - Sub-center(Ikebukuro)
|
||||||
|
else if(ocmEventDate.competitionId === 17)
|
||||||
|
{
|
||||||
|
itemId = 99;
|
||||||
|
}
|
||||||
|
// 12th - Kobe
|
||||||
|
else if(ocmEventDate.competitionId === 18)
|
||||||
|
{
|
||||||
|
itemId = 105;
|
||||||
|
}
|
||||||
|
// 13th - New Belt Line
|
||||||
|
else if(ocmEventDate.competitionId === 19)
|
||||||
|
{
|
||||||
|
itemId = 141;
|
||||||
|
}
|
||||||
|
// 14th - Yokohama
|
||||||
|
else if(ocmEventDate.competitionId === 20)
|
||||||
|
{
|
||||||
|
itemId = 147;
|
||||||
|
}
|
||||||
|
// 15th - Hiroshima
|
||||||
|
else if(ocmEventDate.competitionId === 21)
|
||||||
|
{
|
||||||
|
itemId = 153;
|
||||||
|
}
|
||||||
|
|
||||||
let checkNameplate = await prisma.carItem.count({
|
let checkNameplate = await prisma.carItem.count({
|
||||||
where:{
|
where:{
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -59,7 +59,7 @@ export async function saveStoryResult(body: wm.protobuf.SaveGameResultRequest, c
|
|||||||
data.stClearBits = storyResult.stClearBits;
|
data.stClearBits = storyResult.stClearBits;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calling give meter reward function (BASE_PATH/src/util/meter_reward.ts)
|
// Calling check step function (BASE_PATH/src/util/games/games_util/check_step.ts)
|
||||||
let check_steps = await check_step.checkCurrentStep(body);
|
let check_steps = await check_step.checkCurrentStep(body);
|
||||||
|
|
||||||
// Set the ghost level to the correct level
|
// Set the ghost level to the correct level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user