Convert background prefs, and records to TG (#19417)

* attempt to migrate all background prefs..

* compiles

* separate background and record prefs

* move some things for clarity..

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Aura Dusklight
2026-05-03 18:08:15 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent b24cc0bce2
commit 222e4cdbdc
8 changed files with 327 additions and 192 deletions
+3 -2
View File
@@ -516,9 +516,10 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
var/list/dudes = list()
for(var/mob/living/carbon/human/man in GLOB.player_list)
if(man.client)
if((man.client.prefs.economic_status == CLASS_LOWER) || (man.client.prefs.economic_status == CLASS_BROKE))
var/econ_status = man.client.prefs.read_preference(/datum/preference/choiced/human/economic_status)
if((econ_status == CLASS_LOWER) || (econ_status == CLASS_BROKE))
dudes += man
else if(man.client.prefs.economic_status == CLASS_LOWMID && prob(50))
else if(econ_status == CLASS_LOWMID && prob(50))
dudes += man
if(dudes.len == 0) return null
return pick(dudes)