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

ocm fix ranking

This commit is contained in:
ghkkk090 2022-08-20 18:59:28 +07:00
parent 29b4a54fcd
commit 52537d8f7b
4 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ export default class GhostModule extends Module {
if(cars[i].regionId === 0)
{
let randomRegionId = Math.floor(Math.random() * 47) + 1;
cars[i].regionId = randomRegionId; // Change car region id to 1 (Hokkaido)
cars[i].regionId = randomRegionId;
}
}
// ----------------------
@ -210,7 +210,7 @@ export default class GhostModule extends Module {
if(car[randomNumber]!.regionId === 0)
{
let randomRegionId = Math.floor(Math.random() * 47) + 1;
car[randomNumber].regionId = randomRegionId; // Hokkaido
car[randomNumber].regionId = randomRegionId;
}
// Push user's car data without ghost trail

View File

@ -2,6 +2,7 @@ import { Application } from "express";
import { Module } from "module";
import { prisma } from "..";
import { Car, CarGTWing } from "@prisma/client";
import { Config } from "../config";
// Import Proto
import * as wm from "../wmmt/wm.proto";
@ -10,7 +11,6 @@ import * as wm from "../wmmt/wm.proto";
import * as common from "../util/common";
import * as ghost_ocm from "../util/games/ghost_ocm";
import * as ghost_ocm_area from "../util/games/games_util/ghost_ocm_area";
import { Config } from "../config";
export default class GhostModule extends Module {

View File

@ -388,7 +388,7 @@ export async function ocmCompetitionDay(body: wm.protobuf.LoadGhostCompetitionIn
currentRank = i + 1;
isQualified = true;
}
topresult.push(ocmTallyRecord[i].carId);
topresult.push(ocmTallyRecord[i].result);
}
// Mini game braking point

View File

@ -1,2 +1,2 @@
node dist
yarn dev
pause