reworks game preferences (characters v2 staging) (#6310)

Co-authored-by: silicons <no@you.cat>
Co-authored-by: LordME <58342752+TheLordME@users.noreply.github.com>
This commit is contained in:
silicons
2024-04-08 12:44:30 +02:00
committed by GitHub
co-authored by silicons LordME
parent 9f1b911556
commit 39bc14bb4a
427 changed files with 3981 additions and 2842 deletions
+6 -2
View File
@@ -1,3 +1,6 @@
//* This file is explicitly licensed under the MIT license. *//
//* Copyright (c) 2023 Citadel Station developers. *//
GLOBAL_LIST_EMPTY(client_data)
/proc/resolve_client_data(ckey, key)
@@ -65,7 +68,7 @@ GLOBAL_LIST_EMPTY(client_data)
log_shadowban("[ckey] autobanned based on [why].")
message_admins(SPAN_DANGER("Automatically shadowbanning [ckey] based on configuration (matched on [why]). Varedit client.persistent.ligma to change this."))
/datum/client_data/proc/block_on_account_age_loaded(timeout = INFINITY)
/datum/client_data/proc/block_on_account_age_loaded(timeout = 10 SECONDS)
var/timed_out = world.time + timeout
UNTIL(!isnull(account_age) || world.time > timed_out)
return account_age
@@ -143,7 +146,8 @@ GLOBAL_LIST_EMPTY(client_data)
playtime_loaded = TRUE
playtime_mutex = FALSE
/datum/client_data/proc/block_on_playtime_loaded(timeout = INFINITY)
/datum/client_data/proc/block_on_playtime_loaded(timeout = 10 SECONDS)
var/timed_out = world.time + timeout
load_playtime()
UNTIL(playtime_loaded || world.time > timed_out)
return playtime_loaded