mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 22:59:52 +03:00
feat: gitadora frontend
This commit is contained in:
Vendored
+1
-1
@@ -111,7 +111,7 @@ const staticIndexes: Partial<Record<Databases, Array<Index>>> = {
|
||||
"charts-sdvx": [index({ "data.inGameID": 1, difficulty: 1 })],
|
||||
"charts-museca": [index({ "data.inGameID": 1, difficulty: 1 }, UNIQUE)],
|
||||
"charts-chunithm": [index({ "data.inGameID": 1, difficulty: 1 }, UNIQUE)],
|
||||
"charts-gitadora": [index({ "data.inGameID": 1, difficulty: 1 }, UNIQUE)],
|
||||
"charts-gitadora": [index({ "data.inGameID": 1, difficulty: 1, playtype: 1 }, UNIQUE)],
|
||||
"charts-wacca": [index({ isHot: 1 })],
|
||||
"charts-usc": [index({ "data.hashSHA1": 1, playtype: 1 }, UNIQUE)],
|
||||
"charts-jubeat": [index({ "data.inGameID": 1, difficulty: 1 }, UNIQUE)],
|
||||
|
||||
@@ -91,6 +91,9 @@ export function GenericCalculatePercent(game: Game, score: number, chart?: Chart
|
||||
|
||||
case "jubeat":
|
||||
throw new Error(`Cannot calculate percent for jubeat. Music Rate must be provided.`);
|
||||
|
||||
// gitadora's score is just a percent
|
||||
// this is a hack: we need a refactor for this.
|
||||
case "gitadora":
|
||||
case "itg":
|
||||
return score;
|
||||
|
||||
@@ -362,7 +362,7 @@ export async function ResolveMatchTypeToKTData(
|
||||
);
|
||||
}
|
||||
|
||||
const identifier = data.identifier;
|
||||
const identifier = Number(data.identifier);
|
||||
|
||||
const difficulty = AssertStrAsDifficulty(data.difficulty, game, context.playtype);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
integer,
|
||||
Playtype,
|
||||
UserDocument,
|
||||
UGSRatingsLookup,
|
||||
ProfileRatingLookup,
|
||||
UserGameStats,
|
||||
} from "tachi-common";
|
||||
|
||||
@@ -192,7 +192,7 @@ export async function GetAllRankings(stats: UserGameStats) {
|
||||
|
||||
export async function GetUsersRankingAndOutOf(
|
||||
stats: UserGameStats,
|
||||
alg?: UGSRatingsLookup[IDStrings]
|
||||
alg?: ProfileRatingLookup[IDStrings]
|
||||
) {
|
||||
const gptConfig = GetGamePTConfig(stats.game, stats.playtype);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user