mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Refactors player preferences for modularity + SQLite Unit Test (#37615)
* Pref code refactor * Empty database reference * Unit testing SQLite * Everything else * Disable unit testing. * Equivalent * more robust unit tests
This commit is contained in:
committed by
GitHub
parent
3290a3a747
commit
189f77cbb7
@@ -35,7 +35,7 @@
|
||||
/obj/item/device/radio/headset/talk_into(datum/speech/speech_orig, channel=null)
|
||||
if(!broadcasting)
|
||||
return
|
||||
if(usr?.client?.prefs.headset_sound)
|
||||
if(usr?.client?.prefs.get_pref(/datum/preference_setting/numerical/headset_sound))
|
||||
playsound(usr, 'sound/effects/radio_chatter.ogg', 100, 1, vary = 0)
|
||||
return ..()
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
if(ishuman(src.loc))
|
||||
var/mob/living/carbon/human/H = src.loc
|
||||
if(H.ears == src)
|
||||
if(H.client && (H.client.prefs.headset_sound == HEADSET_SOUND_ALL))
|
||||
if(H.client && (H.client.prefs.get_pref(/datum/preference_setting/numerical/headset_sound) == HEADSET_SOUND_ALL))
|
||||
playsound(H, 'sound/effects/radio_chatter.ogg', 100, 1, vary = 0)
|
||||
return ..(freq, level)
|
||||
return -1
|
||||
|
||||
Reference in New Issue
Block a user