Skip to content

Commit

Permalink
Add Hitpoint 2024 config (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archinowsk authored Oct 19, 2024
1 parent 9efebd2 commit 1b61dc6
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 44 deletions.
60 changes: 16 additions & 44 deletions shared/config/eventConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand All @@ -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,
};
97 changes: 97 additions & 0 deletions shared/config/past-events/tracon2024.ts
Original file line number Diff line number Diff line change
@@ -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
};

0 comments on commit 1b61dc6

Please sign in to comment.