Add Void difficulty and publish changelogs
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m40s

This commit is contained in:
2026-10-20 14:05:01 +05:00
parent 3ba398a838
commit de0e891b62
37 changed files with 995 additions and 65 deletions

View File

@@ -68,6 +68,31 @@ try {
JSON.stringify({ ...base, ...payload }),
])
)[0].id;
const voidEvent = await create({
difficulty: "void",
roundTimeSeconds: 10,
timerMode: "perMini",
});
const voidRules = (
await q(
"select difficulty_settings,round_time_seconds,timer_mode from public.tournaments where id=$1",
[voidEvent],
)
)[0];
assert.equal(voidRules.difficulty_settings.seconds, 10);
assert.equal(voidRules.difficulty_settings.mapPan, false);
assert.equal(voidRules.difficulty_settings.scoring, "strict");
assert.equal(voidRules.round_time_seconds, 10);
assert.equal(voidRules.timer_mode, "perMini");
for (const settings of [
{ roundTimeSeconds: 90, timerMode: "perMini" },
{ roundTimeSeconds: 10, timerMode: "shared" },
])
await assert.rejects(
create({ difficulty: "void", ...settings }),
/Void requires a separate 10-second timer/,
);
await q("delete from public.tournaments where id=$1", [voidEvent]);
const act = async (id, user, action = "view", payload = {}) =>
(
await q("select public.tournament_action($1,$2,$3,$4) value", [