ocm fix ranking
This commit is contained in:
parent
29b4a54fcd
commit
52537d8f7b
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user