Add PERMISSIVE as a type for scores.

This commit is contained in:
zkldi
2021-12-06 22:35:13 +00:00
parent ec7aa5022c
commit 9d88a1ec22
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ const GetScoreMeta = (game: Game, playtype: Playtypes[Game]): PrudenceSchema =>
} else if (game === "usc") {
return {
noteMod: optNull(p.isIn("NORMAL", "MIRROR", "RANDOM", "MIR-RAN")),
gaugeMod: optNull(p.isIn("NORMAL", "HARD")),
gaugeMod: optNull(p.isIn("NORMAL", "HARD", "PERMISSIVE")),
};
} else if (game === "bms" && playtype === "7K") {
return {
@@ -65,7 +65,7 @@ const PR_ScoreMeta = (game: Game, playtype: Playtypes[Game]): PrudenceSchema =>
} else if (game === "usc") {
return {
noteMod: optNull(p.isIn("NORMAL", "MIRROR", "RANDOM", "MIR-RAN")),
gaugeMod: optNull(p.isIn("NORMAL", "HARD")),
gaugeMod: optNull(p.isIn("NORMAL", "HARD", "PERMISSIVE")),
};
} else if (game === "sdvx") {
return {
@@ -128,7 +128,12 @@ export const ConverterIRUSC: ConverterFunction<USCClientScore, IRUSCContext> = a
},
},
scoreMeta: {
gaugeMod: data.options.gaugeType === 0 ? "NORMAL" : "HARD",
gaugeMod:
data.options.gaugeType === 0
? "NORMAL"
: data.options.gaugeType === 1
? "HARD"
: "PERMISSIVE",
noteMod: DeriveNoteMod(data),
},
};
@@ -8,7 +8,7 @@ export interface USCServerScore {
near: integer;
error: integer;
ranking: integer;
gaugeMod: "NORMAL" | "HARD";
gaugeMod: "NORMAL" | "HARD" | "PERMISSIVE";
noteMod: "NORMAL" | "MIRROR" | "RANDOM" | "MIR-RAN";
username: string;
}