add support for freemod

This commit is contained in:
2026-03-01 21:28:00 +01:00
parent 4ec36cf437
commit 4faf1aa21d
2 changed files with 3 additions and 3 deletions

View File

@@ -561,8 +561,8 @@ export async function playPickedMap(matchId: string, matchGameId: string) {
await lobby.setMap(slot.beatmapId); await lobby.setMap(slot.beatmapId);
await sleep(1000); await sleep(1000);
// Set mods // Set mods — FM category always uses Freemod regardless of stored mods array
await lobby.setMods(slot.mods); await lobby.setMods(slot.category === 'FM' ? ['FM'] : slot.mods);
await sleep(500); await sleep(500);
// Announce with context: what map, current score, what to do // Announce with context: what map, current score, what to do

View File

@@ -161,7 +161,7 @@ export const actions: Actions = {
starRating: beatmap.difficulty_rating, starRating: beatmap.difficulty_rating,
bpm: beatmap.bpm, bpm: beatmap.bpm,
totalLength: beatmap.total_length, totalLength: beatmap.total_length,
mods: category === 'NM' || category === 'TB' || category === 'FM' ? [] : [category], mods: category === 'NM' || category === 'TB' ? [] : [category],
// Cached metadata — all R2 URLs // Cached metadata — all R2 URLs
title: beatmap.beatmapset.title, title: beatmap.beatmapset.title,
artist: beatmap.beatmapset.artist, artist: beatmap.beatmapset.artist,