From ea0d6fc5a121e5f46adca435b33bf2ed750b3e06 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 11 Oct 2018 20:49:33 -0400 Subject: [PATCH] Log trait and species usage for metrics Just some stuff for use in building statistics about characters --- code/game/jobs/job_controller.dm | 1 + code/modules/client/preference_setup/vore/07_traits.dm | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/code/game/jobs/job_controller.dm b/code/game/jobs/job_controller.dm index 278e516aae..8792a7ba35 100644 --- a/code/game/jobs/job_controller.dm +++ b/code/game/jobs/job_controller.dm @@ -434,6 +434,7 @@ var/global/datum/controller/occupations/job_master H.job = 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(H.mind && job.head_position) diff --git a/code/modules/client/preference_setup/vore/07_traits.dm b/code/modules/client/preference_setup/vore/07_traits.dm index c57f485146..4276a41163 100644 --- a/code/modules/client/preference_setup/vore/07_traits.dm +++ b/code/modules/client/preference_setup/vore/07_traits.dm @@ -87,6 +87,10 @@ 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) + //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 new_CS.blood_color = pref.blood_color