mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Convert preferences to /tg/ preferences (#9797)
Co-authored-by: ShadowLarkens <shadowlarkens@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
689b354903
commit
039ee85382
@@ -50,14 +50,14 @@
|
||||
return TRUE
|
||||
|
||||
var/min_age = job.get_min_age(prefs.species, prefs.organ_data["brain"])
|
||||
if(prefs.age >= min_age)
|
||||
if(prefs.read_preference(/datum/preference/numeric/human/age) >= min_age)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/datum/tgui_module/late_choices/tgui_data(mob/new_player/user)
|
||||
var/list/data = ..()
|
||||
|
||||
var/name = user.client.prefs.be_random_name ? "friend" : user.client.prefs.real_name
|
||||
var/name = user.client.prefs.read_preference(/datum/preference/toggle/human/name_is_always_random) ? "friend" : user.client.prefs.real_name
|
||||
|
||||
data["name"] = name
|
||||
data["duration"] = roundduration2text()
|
||||
@@ -139,4 +139,4 @@
|
||||
tgui_alert_async(new_user,"Your current species, [new_user.client.prefs.species], is not available for play on the station.")
|
||||
return 0
|
||||
|
||||
new_user.AttemptLateSpawn(job, new_user.client.prefs.spawnpoint)
|
||||
new_user.AttemptLateSpawn(job, new_user.read_preference(/datum/preference/choiced/living/spawnpoint))
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
if(!window.is_ready())
|
||||
window.initialize(
|
||||
strict_mode = TRUE,
|
||||
fancy = user.client.prefs.tgui_fancy,
|
||||
fancy = user.read_preference(/datum/preference/toggle/tgui_fancy),
|
||||
assets = list(
|
||||
// FIXME: Delete this when 516 is required!
|
||||
user.client.byond_version >= 516 \
|
||||
@@ -269,8 +269,8 @@
|
||||
"window" = list(
|
||||
"key" = window_key,
|
||||
"size" = window_size,
|
||||
"fancy" = user.client.prefs.tgui_fancy,
|
||||
"locked" = user.client.prefs.tgui_lock,
|
||||
"fancy" = user.read_preference(/datum/preference/toggle/tgui_fancy),
|
||||
"locked" = user.read_preference(/datum/preference/toggle/tgui_lock),
|
||||
),
|
||||
"client" = list(
|
||||
"ckey" = user.client.ckey,
|
||||
|
||||
Reference in New Issue
Block a user