add support for freemod
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user