Add Void difficulty and publish changelogs
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m40s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m40s
This commit is contained in:
@@ -183,6 +183,18 @@ export const difficulties = {
|
||||
easy: { seconds: 180, zoom: true, label: "Easy" },
|
||||
normal: { seconds: 90, zoom: true, label: "Normal" },
|
||||
hard: { seconds: 30, zoom: false, label: "Hard" },
|
||||
void: {
|
||||
seconds: 10,
|
||||
zoom: false,
|
||||
label: "Void",
|
||||
pan: false,
|
||||
compass: false,
|
||||
coordinates: false,
|
||||
mapZoom: false,
|
||||
mapPan: false,
|
||||
timerVisible: true,
|
||||
scoring: "strict",
|
||||
},
|
||||
} as const;
|
||||
export type Difficulty = keyof typeof difficulties;
|
||||
export const difficultyRuleDefaults = {
|
||||
@@ -190,6 +202,8 @@ export const difficultyRuleDefaults = {
|
||||
compass: true,
|
||||
coordinates: true,
|
||||
mapZoom: true,
|
||||
mapPan: true,
|
||||
timerVisible: true,
|
||||
scoring: "normal" as const,
|
||||
};
|
||||
export type ScoringMode = "normal" | "strict" | "gentle";
|
||||
@@ -203,6 +217,8 @@ export type DifficultyPreset = {
|
||||
compass?: boolean;
|
||||
coordinates?: boolean;
|
||||
mapZoom?: boolean;
|
||||
mapPan?: boolean;
|
||||
timerVisible?: boolean;
|
||||
scoring?: ScoringMode;
|
||||
};
|
||||
export const customDifficultySchema = z
|
||||
@@ -222,14 +238,16 @@ export const customDifficultySchema = z
|
||||
seconds: z
|
||||
.number()
|
||||
.int()
|
||||
.min(15)
|
||||
.min(5)
|
||||
.max(600)
|
||||
.refine((seconds) => seconds % 15 === 0),
|
||||
.refine((seconds) => seconds % 5 === 0),
|
||||
zoom: z.boolean(),
|
||||
pan: z.boolean().default(true),
|
||||
compass: z.boolean().default(true),
|
||||
coordinates: z.boolean().default(true),
|
||||
mapZoom: z.boolean().default(true),
|
||||
mapPan: z.boolean().default(true),
|
||||
timerVisible: z.boolean().default(true),
|
||||
scoring: z.enum(["normal", "strict", "gentle"]).default("normal"),
|
||||
})
|
||||
.strict();
|
||||
|
||||
Reference in New Issue
Block a user