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:
Anthony "Shifty Rail
2025-06-07 14:54:09 +01:00
committed by GitHub
parent 3290a3a747
commit 189f77cbb7
89 changed files with 4694 additions and 2543 deletions

View File

@@ -88,7 +88,7 @@
if (some_hearer.ear_deaf > 0)
continue
// var/dist = get_dist(some_hearer, src)
if (!some_hearer.client.prefs.hear_instruments)
if (!some_hearer.client.prefs.get_pref(/datum/preference_setting/toggle/hear_instruments))
continue
present_listeners += some_hearer
last_updated_listeners = world.time
@@ -103,4 +103,4 @@
// Cease playing
return 0
#undef REFRESH_FREQUENCY
#undef REFRESH_FREQUENCY