mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 12:31:32 +00:00
* Kills _globalvars/misc.dm * aaa Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
28 lines
697 B
Plaintext
28 lines
697 B
Plaintext
|
|
///assoc list of ckey -> /datum/player_details
|
|
GLOBAL_LIST_EMPTY(player_details)
|
|
|
|
/datum/player_details
|
|
var/list/player_actions = list()
|
|
var/list/logging = list()
|
|
var/list/post_login_callbacks = list()
|
|
var/list/post_logout_callbacks = list()
|
|
var/list/played_names = list() //List of names this key played under this round
|
|
var/byond_version = "Unknown"
|
|
var/datum/achievement_data/achievements
|
|
|
|
/datum/player_details/New(key)
|
|
achievements = new(key)
|
|
|
|
/proc/log_played_names(ckey, ...)
|
|
if(!ckey)
|
|
return
|
|
if(args.len < 2)
|
|
return
|
|
var/list/names = args.Copy(2)
|
|
var/datum/player_details/P = GLOB.player_details[ckey]
|
|
if(P)
|
|
for(var/name in names)
|
|
if(name)
|
|
P.played_names |= name
|