From 1b61dc64dafd9c0593c84c73e92499392f4a9abb Mon Sep 17 00:00:00 2001 From: Arttu Hanska Date: Sat, 19 Oct 2024 20:36:35 +0300 Subject: [PATCH] Add Hitpoint 2024 config (#1062) --- shared/config/eventConfig.ts | 60 ++++----------- shared/config/past-events/tracon2024.ts | 97 +++++++++++++++++++++++++ 2 files changed, 113 insertions(+), 44 deletions(-) create mode 100644 shared/config/past-events/tracon2024.ts diff --git a/shared/config/eventConfig.ts b/shared/config/eventConfig.ts index 25dacf0f8..2d1f3d522 100644 --- a/shared/config/eventConfig.ts +++ b/shared/config/eventConfig.ts @@ -2,50 +2,39 @@ import { AssignmentAlgorithm, EventName, EventConfig, - EntryConditionText, } from "shared/config/eventConfigTypes"; import { ProgramType } from "shared/types/models/programItem"; -// Event days -const friday = "2024-09-06"; -// const saturday = "2024-09-07"; -// const sunday = "2024-09-07"; - export const eventConfig: EventConfig = { // Event info - eventName: EventName.TRACON, + eventName: EventName.HITPOINT, eventYear: "2024", // Event settings requireRegistrationCode: true, - assignmentAlgorithm: AssignmentAlgorithm.RANDOM, - popularityAlgorithm: AssignmentAlgorithm.RANDOM, + assignmentAlgorithm: AssignmentAlgorithm.RANDOM_PADG, + popularityAlgorithm: AssignmentAlgorithm.PADG, enableGroups: true, signupOpen: true, resultsVisible: true, - logInvalidStartTimes: false, - enableRemoveOverlapSignups: false, + logInvalidStartTimes: true, + enableRemoveOverlapSignups: true, - activeProgramTypes: [ - ProgramType.TABLETOP_RPG, - ProgramType.LARP, - ProgramType.FLEAMARKET, - ], + activeProgramTypes: [ProgramType.TABLETOP_RPG, ProgramType.LARP], - twoPhaseSignupProgramTypes: [ProgramType.FLEAMARKET], + twoPhaseSignupProgramTypes: [ProgramType.TABLETOP_RPG, ProgramType.LARP], - // Event start at 15:00 GMT+3 but lottery signups start at 08:00 GMT+3 - eventStartTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3 + eventStartTime: `2024-11-02T07:00:00Z`, // Sat 10:00 GMT+3 directSignupWindows: {}, - rollingDirectSignupProgramTypes: [ProgramType.TABLETOP_RPG, ProgramType.LARP], + rollingDirectSignupProgramTypes: [], enableRollingDirectSignupPreviousDay: false, - hideParticipantListProgramTypes: [ProgramType.FLEAMARKET], + hideParticipantListProgramTypes: [], // Direct signup open till program item endTime instead of startTime - directSignupOpenToEndProgramTypes: [ProgramType.FLEAMARKET], + directSignupOpenToEndProgramTypes: [], // These program items have their signup always open even if signup mode is set to lottery directSignupAlwaysOpenIds: [], @@ -67,31 +56,14 @@ export const eventConfig: EventConfig = { isEnglishProgramItems: [], - entryConditions: [ - { - conditionText: EntryConditionText.K16, - programItemIds: [ - "alien-evac", // ALIEN: EVAC - "alien-fallout", // ALIEN: Fallout - "kriisitunturi", // Kriisitunturi - "murheen-valama-vankila", // Murheen valama vankila - "seestunturin-salaisuus", // Seestunturin salaisuus - "ristipisto", // Ristipisto - "circumstances-zombie-apocalypse-co-op", // Circumstances – Zombie Apocalypse (co-op) - "circumstances-zombie-apocalypse-pahispelautus", // Circumstances – Zombie Apocalypse (pahispelautus) - "mita-kellarista-loytyy", // Mitä kellarista löytyy? - "kusinen-homma", // Kusinen Homma - ], - }, - { - conditionText: EntryConditionText.K18, - programItemIds: ["varjojen-sisarkunta"], // Varjojen sisarkunta - }, - ], + // Require checkbox to be checked before signing up + entryConditions: [], // Two phase signup settings preSignupStart: 60 * 4, // minutes directSignupPhaseStart: 60 * 2, // minutes phaseGap: 15, // minutes - fixedLotterySignupTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3 + + // Use fixed time to open all lottery signups for the whole event + fixedLotterySignupTime: null, }; diff --git a/shared/config/past-events/tracon2024.ts b/shared/config/past-events/tracon2024.ts new file mode 100644 index 000000000..25dacf0f8 --- /dev/null +++ b/shared/config/past-events/tracon2024.ts @@ -0,0 +1,97 @@ +import { + AssignmentAlgorithm, + EventName, + EventConfig, + EntryConditionText, +} from "shared/config/eventConfigTypes"; +import { ProgramType } from "shared/types/models/programItem"; + +// Event days +const friday = "2024-09-06"; +// const saturday = "2024-09-07"; +// const sunday = "2024-09-07"; + +export const eventConfig: EventConfig = { + // Event info + eventName: EventName.TRACON, + eventYear: "2024", + + // Event settings + requireRegistrationCode: true, + assignmentAlgorithm: AssignmentAlgorithm.RANDOM, + popularityAlgorithm: AssignmentAlgorithm.RANDOM, + enableGroups: true, + signupOpen: true, + resultsVisible: true, + logInvalidStartTimes: false, + enableRemoveOverlapSignups: false, + + activeProgramTypes: [ + ProgramType.TABLETOP_RPG, + ProgramType.LARP, + ProgramType.FLEAMARKET, + ], + + twoPhaseSignupProgramTypes: [ProgramType.FLEAMARKET], + + // Event start at 15:00 GMT+3 but lottery signups start at 08:00 GMT+3 + eventStartTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3 + + directSignupWindows: {}, + + rollingDirectSignupProgramTypes: [ProgramType.TABLETOP_RPG, ProgramType.LARP], + enableRollingDirectSignupPreviousDay: false, + + hideParticipantListProgramTypes: [ProgramType.FLEAMARKET], + + // Direct signup open till program item endTime instead of startTime + directSignupOpenToEndProgramTypes: [ProgramType.FLEAMARKET], + + // These program items have their signup always open even if signup mode is set to lottery + directSignupAlwaysOpenIds: [], + + // Add these to Konsti under 'other' program type + addToKonstiOther: [], + + // These program items have hand picked revolving door status + addRevolvingDoorIds: [], + + // These program items are imported to Konsti but don't have Konsti signup + noKonstiSignupIds: [], + + signupQuestions: [], + + tournamentSignupQuestion: null, + + tournamentSignupQuestionExcludeIds: [], + + isEnglishProgramItems: [], + + entryConditions: [ + { + conditionText: EntryConditionText.K16, + programItemIds: [ + "alien-evac", // ALIEN: EVAC + "alien-fallout", // ALIEN: Fallout + "kriisitunturi", // Kriisitunturi + "murheen-valama-vankila", // Murheen valama vankila + "seestunturin-salaisuus", // Seestunturin salaisuus + "ristipisto", // Ristipisto + "circumstances-zombie-apocalypse-co-op", // Circumstances – Zombie Apocalypse (co-op) + "circumstances-zombie-apocalypse-pahispelautus", // Circumstances – Zombie Apocalypse (pahispelautus) + "mita-kellarista-loytyy", // Mitä kellarista löytyy? + "kusinen-homma", // Kusinen Homma + ], + }, + { + conditionText: EntryConditionText.K18, + programItemIds: ["varjojen-sisarkunta"], // Varjojen sisarkunta + }, + ], + + // Two phase signup settings + preSignupStart: 60 * 4, // minutes + directSignupPhaseStart: 60 * 2, // minutes + phaseGap: 15, // minutes + fixedLotterySignupTime: `${friday}T05:00:00Z`, // Fri 08:00 GMT+3 +};