Merge pull request #7025 from Citadel-Station-13/upstream-merge-37790
[MIRROR] Individual Logs now follow the client around automatically
This commit is contained in:
@@ -79,7 +79,6 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
|
||||
var/mob/body = loc
|
||||
if(ismob(body))
|
||||
T = get_turf(body) //Where is the body located?
|
||||
logging = body.logging //preserve our logs by copying them to our ghost
|
||||
|
||||
gender = body.gender
|
||||
if(body.mind && body.mind.name)
|
||||
|
||||
@@ -48,7 +48,4 @@
|
||||
for(var/datum/action/A in client.player_details.player_actions)
|
||||
A.Grant(src)
|
||||
|
||||
if(!GLOB.individual_log_list[ckey])
|
||||
GLOB.individual_log_list[ckey] = logging
|
||||
else
|
||||
logging = GLOB.individual_log_list[ckey]
|
||||
log_message("Client [key_name(src)] has taken ownership of mob [src]", INDIVIDUAL_OWNERSHIP_LOG)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/mob/Logout()
|
||||
log_message("[key_name(src)] is no longer owning mob [src]", INDIVIDUAL_OWNERSHIP_LOG)
|
||||
SStgui.on_logout(src)
|
||||
unset_machine()
|
||||
GLOB.player_list -= src
|
||||
@@ -8,4 +9,4 @@
|
||||
if(loc)
|
||||
loc.on_log(FALSE)
|
||||
|
||||
return TRUE
|
||||
return TRUE
|
||||
|
||||
@@ -785,6 +785,7 @@
|
||||
//This will update a mob's name, real_name, mind.name, GLOB.data_core records, pda, id and traitor text
|
||||
//Calling this proc without an oldname will only update the mob and skip updating the pda, id and records ~Carn
|
||||
/mob/proc/fully_replace_character_name(oldname,newname)
|
||||
log_message("[src] name changed from [oldname] to [newname]", INDIVIDUAL_OWNERSHIP_LOG)
|
||||
if(!newname)
|
||||
return 0
|
||||
real_name = newname
|
||||
|
||||
@@ -477,12 +477,18 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
|
||||
if(!LAZYLEN(message) || !message_type)
|
||||
return
|
||||
|
||||
if(client)
|
||||
if(!islist(client.player_details.logging[message_type]))
|
||||
client.player_details.logging[message_type] = list()
|
||||
|
||||
if(!islist(logging[message_type]))
|
||||
logging[message_type] = list()
|
||||
|
||||
var/list/timestamped_message = list("[LAZYLEN(logging[message_type]) + 1]\[[time_stamp()]\] [key_name(src)]" = message)
|
||||
|
||||
logging[message_type] += timestamped_message
|
||||
if(client)
|
||||
client.player_details.logging[message_type] += timestamped_message
|
||||
|
||||
/mob/proc/can_hear()
|
||||
. = TRUE
|
||||
|
||||
Reference in New Issue
Block a user