diff --git a/src/server/MapPlaylist.ts b/src/server/MapPlaylist.ts index 638f3f8ed..983071ba4 100644 --- a/src/server/MapPlaylist.ts +++ b/src/server/MapPlaylist.ts @@ -39,7 +39,8 @@ const TEAM_WEIGHTS: { config: TeamCountConfig; weight: number }[] = [ export class MapPlaylist { private recentMaps: GameMapType[] = []; private modeSequenceIndex = 0; - private readonly maxRecentMaps = 5; + // TODO: Adjust based on feedback + private readonly maxRecentMaps = 0; // e.g., 5 private readonly modeSequence: GameMode[]; constructor(private disableTeams: boolean = false) { diff --git a/src/server/Master.ts b/src/server/Master.ts index 816f932a6..69cf2b6bc 100644 --- a/src/server/Master.ts +++ b/src/server/Master.ts @@ -80,6 +80,8 @@ const publicLobbyMapSet = new Set(publicLobbyMaps); const mapVotesByUser = new Map>(); const mapVoteConnectionsByUser = new Map>(); const mapVoteUserByConnection = new Map(); +// TODO: Adjust based on feedback +const MAP_VOTE_WEIGHT = 10000000000; // for debug purposes, make votes very impactful 'w' const MapVoteMessageSchema = z.object({ type: z.literal("map_vote"), @@ -180,7 +182,7 @@ function collectMapVoteWeights(): Map { const weights = new Map(); for (const maps of mapVotesByUser.values()) { for (const map of maps) { - weights.set(map, (weights.get(map) ?? 0) + 1); + weights.set(map, (weights.get(map) ?? 0) + MAP_VOTE_WEIGHT); } } return weights;