diff --git a/code/__HELPERS/logging/mob.dm b/code/__HELPERS/logging/mob.dm index 7d752c1eb6b..9fe2b57adee 100644 --- a/code/__HELPERS/logging/mob.dm +++ b/code/__HELPERS/logging/mob.dm @@ -1,5 +1,10 @@ -/proc/log_mob_tag(text) - WRITE_LOG(GLOB.world_mob_tag_log, "TAG: [text]") +/** + * Logs a mesage to the mob_tags log, including the mobs tag + * Arguments: + * * text - text to log. + */ +/mob/proc/log_mob_tag(text) + WRITE_LOG(GLOB.world_mob_tag_log, "TAG: \[[tag]\] [text]") /proc/log_silicon(text) if (CONFIG_GET(flag/log_silicon)) diff --git a/code/datums/dna.dm b/code/datums/dna.dm index 377ce156351..ca33c326015 100644 --- a/code/datums/dna.dm +++ b/code/datums/dna.dm @@ -533,9 +533,14 @@ GLOBAL_LIST_INIT(total_uf_len_by_block, populate_total_uf_len_by_block()) var/species_holder = initial(mrace.species_language_holder) language_holder = new species_holder(src) update_atom_languages() +<<<<<<< HEAD */ //SKYRAT EDIT REMOVAL BEGIN /* +======= + log_mob_tag("SPECIES: [key_name(src)] \[[mrace]\]") + +>>>>>>> 677827e87d3 (Expands mob_tags logging (#70259)) /mob/living/carbon/human/set_species(datum/species/mrace, icon_update = TRUE, pref_load = FALSE) ..() if(icon_update) diff --git a/code/modules/client/preferences/names.dm b/code/modules/client/preferences/names.dm index e384fed401a..563dd06e692 100644 --- a/code/modules/client/preferences/names.dm +++ b/code/modules/client/preferences/names.dm @@ -42,6 +42,7 @@ /datum/preference/name/real_name/apply_to_human(mob/living/carbon/human/target, value) target.real_name = value target.name = value + target.log_mob_tag("RENAMED: [key_name(target)]") /datum/preference/name/real_name/create_informed_default_value(datum/preferences/preferences) var/species_type = preferences.read_preference(/datum/preference/choiced/species) diff --git a/code/modules/mob/dead/dead.dm b/code/modules/mob/dead/dead.dm index e75bd5e7296..2fd085416e7 100644 --- a/code/modules/mob/dead/dead.dm +++ b/code/modules/mob/dead/dead.dm @@ -22,6 +22,7 @@ INITIALIZE_IMMEDIATE(/mob/dead) add_verb(src, /mob/dead/proc/server_hop) set_focus(src) become_hearing_sensitive() + log_mob_tag("CREATED: [key_name(src)] \[[src.type]\]") return INITIALIZE_HINT_NORMAL /mob/dead/canUseStorage() diff --git a/code/modules/mob/living/carbon/human/dummy.dm b/code/modules/mob/living/carbon/human/dummy.dm index 6ddf9e5913d..fc0bbc93756 100644 --- a/code/modules/mob/living/carbon/human/dummy.dm +++ b/code/modules/mob/living/carbon/human/dummy.dm @@ -79,6 +79,9 @@ INITIALIZE_IMMEDIATE(/mob/living/carbon/human/dummy) randomize_human(src) dna.initialize_dna(skip_index = TRUE) //Skip stuff that requires full round init. +/mob/living/carbon/human/dummy/log_mob_tag(text) + return + /// Provides a dummy that is consistently bald, white, naked, etc. /mob/living/carbon/human/dummy/consistent diff --git a/code/modules/mob/login.dm b/code/modules/mob/login.dm index 9b6ceffcb27..9cf0de05daa 100644 --- a/code/modules/mob/login.dm +++ b/code/modules/mob/login.dm @@ -109,7 +109,7 @@ auto_deadmin_on_login() log_message("Client [key_name(src)] has taken ownership of mob [src]([src.type])", LOG_OWNERSHIP) - log_mob_tag("\[[tag]\] NEW OWNER: [key_name(src)]") + log_mob_tag("NEW OWNER: [key_name(src)]") SEND_SIGNAL(src, COMSIG_MOB_CLIENT_LOGIN, client) client.init_verbs() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index d7833c25b5b..c0208c5d1c3 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -93,7 +93,7 @@ initialize_actionspeed() update_movespeed(TRUE) become_hearing_sensitive() - log_mob_tag("\[[tag]\] CREATED: [key_name(src)]") + log_mob_tag("CREATED: [key_name(src)] \[[type]\]") /** * Generate the tag for this mob @@ -1086,7 +1086,7 @@ if(obj.target && obj.target.current && obj.target.current.real_name == name) obj.update_explanation_text() - log_mob_tag("\[[tag]\] RENAMED: [key_name(src)]") + log_mob_tag("RENAMED: [key_name(src)]") return TRUE