[MIRROR] Fix ambience pref not being toggleable in game (#28245)

* 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"
/🆑

* Fix ambience pref not being toggleable in game

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-19 10:03:24 +05:30
committed by GitHub
co-authored by MrMelbert
parent a0927e7e32
commit fcf387a003
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