DojoObstacleScore
All checks were successful
Build / build (22) (pull_request) Successful in 41s
Build / build (20) (pull_request) Successful in 1m8s
Build / build (18) (pull_request) Successful in 1m13s

This commit is contained in:
AMelonInsideLemon 2025-03-20 16:42:31 +01:00
parent b7d525ccb9
commit 14acff99a9
3 changed files with 5 additions and 1 deletions

View File

@ -96,7 +96,8 @@ const statsSchema = new Schema<IStatsDatabase>({
ZephyrScore: Number,
SentinelGameScore: Number,
CaliberChicksScore: Number,
OlliesCrashCourseScore: Number
OlliesCrashCourseScore: Number,
DojoObstacleScore: Number
});
statsSchema.set("toJSON", {

View File

@ -309,6 +309,7 @@ export const updateStats = async (playerStats: TStatsDatabaseDocument, payload:
case "SentinelGameScore":
case "CaliberChicksScore":
case "OlliesCrashCourseScore":
case "DojoObstacleScore":
playerStats[category] ??= 0;
playerStats[category] = data;
break;

View File

@ -30,6 +30,7 @@ export interface IStatsClient {
SentinelGameScore?: number;
CaliberChicksScore?: number;
OlliesCrashCourseScore?: number;
DojoObstacleScore?: number;
}
export interface IStatsDatabase extends IStatsClient {
@ -147,6 +148,7 @@ export interface IStatsMax {
SentinelGameScore?: number;
CaliberChicksScore?: number;
OlliesCrashCourseScore?: number;
DojoObstacleScore?: number;
}
export interface IStatsSet {