Merge pull request #4358 from VOREStation/aro-traitstats

Log trait and species usage for metrics
This commit is contained in:
Aronai Sieyes
2018-10-12 01:45:54 -04:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -434,6 +434,7 @@ var/global/datum/controller/occupations/job_master
H.job = rank H.job = rank
log_game("JOINED [key_name(H)] as \"[rank]\"") log_game("JOINED [key_name(H)] as \"[rank]\"")
log_game("SPECIES [key_name(H)] is a: \"[H.species.name]\"") //VOREStation Add
// If they're head, give them the account info for their department // If they're head, give them the account info for their department
if(H.mind && job.head_position) if(H.mind && job.head_position)

View File

@@ -87,6 +87,10 @@
var/S = pref.custom_base ? pref.custom_base : "Human" var/S = pref.custom_base ? pref.custom_base : "Human"
var/datum/species/custom/new_CS = CS.produceCopy(S, pref.pos_traits + pref.neu_traits + pref.neg_traits, character) var/datum/species/custom/new_CS = CS.produceCopy(S, pref.pos_traits + pref.neu_traits + pref.neg_traits, character)
//Statistics for this would be nice
var/english_traits = english_list(new_CS.traits, and_text = ";", comma_text = ";")
log_game("TRAITS [pref.client_ckey]/([character]) with: [english_traits]") //Terrible 'fake' key_name()... but they aren't in the same entity yet
//Any additional non-trait settings can be applied here //Any additional non-trait settings can be applied here
new_CS.blood_color = pref.blood_color new_CS.blood_color = pref.blood_color