Apply clock announcement spatial range from server

This commit is contained in:
Jage9
2026-02-27 01:12:24 -05:00
parent 47a7aa0a83
commit 3b414b1f89
7 changed files with 12 additions and 8 deletions

View File

@@ -1660,8 +1660,8 @@ const onAppMessage = createOnMessageHandler({
playIncomingItemUseSound: (url, x, y, range) => {
void audio.playSpatialSample(url, { x, y }, { x: state.player.x, y: state.player.y }, 1, range ?? HEARING_RADIUS);
},
playClockAnnouncement: (sounds, x, y) => {
void clockAnnouncer.playSequence(sounds.map(resolveIncomingSoundUrl), x, y);
playClockAnnouncement: (sounds, x, y, range) => {
void clockAnnouncer.playSequence(sounds.map(resolveIncomingSoundUrl), x, y, range);
},
handleAuthRequired,
handleAuthResult,