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, ZephyrScore: Number,
SentinelGameScore: Number, SentinelGameScore: Number,
CaliberChicksScore: Number, CaliberChicksScore: Number,
OlliesCrashCourseScore: Number OlliesCrashCourseScore: Number,
DojoObstacleScore: Number
}); });
statsSchema.set("toJSON", { statsSchema.set("toJSON", {

View File

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

View File

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