Fix ambience pref not being toggleable in game (#84087)

## About The Pull Request

The only time people were added to the ambience SS's list is when you
log in, meaning if you toggle the preference on/off mid game, it does
nothing.

Fixes #61495

## Changelog

🆑 Melbert
fix: Enabling or disabling ambience mid round will properly enable or
disable ambience
qol: Added descriptions differentiating "Ship ambience" from "ambience" 
/🆑
This commit is contained in:
MrMelbert
2024-06-18 17:14:13 -06:00
committed by GitHub
parent 7df9a07dda
commit 48acfd680f
3 changed files with 8 additions and 0 deletions
@@ -4,6 +4,9 @@
savefile_key = "sound_ambience"
savefile_identifier = PREFERENCE_PLAYER
/datum/preference/toggle/sound_ambience/apply_to_client(client/client, value)
client.update_ambience_pref()
/// Controls hearing announcement sounds
/datum/preference/toggle/sound_announcements
category = PREFERENCE_CATEGORY_GAME_PREFERENCES