mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Individual logs are no longer lost with mob changes
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
for(var/log_type in M.logging)
|
||||
var/list/reversed = M.logging[log_type]
|
||||
reversed = reverseRange(reversed.Copy())
|
||||
dat += "<center>[log_type]</center><br>"
|
||||
dat += "<center><b>[log_type]</b></center><br>"
|
||||
for(var/entry in reversed)
|
||||
dat += "<font size=2px>[entry]: [reversed[entry]]</font><br>"
|
||||
dat += "<hr>"
|
||||
@@ -26,6 +26,6 @@
|
||||
if(reversed)
|
||||
reversed = reverseRange(reversed.Copy())
|
||||
for(var/entry in reversed)
|
||||
dat += "<font size=2px>[entry]: [reversed[entry]]</font><hr>"
|
||||
dat += "<font size=2px>[entry]: [reversed[entry]]</font><br>"
|
||||
|
||||
usr << browse(dat, "window=invidual_logging;size=600x480")
|
||||
@@ -39,4 +39,8 @@
|
||||
if(client)
|
||||
client.click_intercept = null
|
||||
|
||||
client.view = world.view // Resets the client.view in case it was changed.
|
||||
client.view = world.view // Resets the client.view in case it was changed.
|
||||
|
||||
if(!LAZYLEN(GLOB.individual_log_list[ckey]))
|
||||
GLOB.individual_log_list[ckey] = list(INDIVIDUAL_ATTACK_LOG, INDIVIDUAL_SAY_LOG, INDIVIDUAL_EMOTE_LOG, INDIVIDUAL_OOC_LOG)
|
||||
logging = GLOB.individual_log_list[ckey]
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
var/computer_id = null
|
||||
var/lastattacker = null
|
||||
var/lastattacked = null
|
||||
var/list/logging = list(INDIVIDUAL_ATTACK_LOG, INDIVIDUAL_SAY_LOG, INDIVIDUAL_EMOTE_LOG, INDIVIDUAL_OOC_LOG)
|
||||
var/list/logging
|
||||
var/obj/machinery/machine = null
|
||||
var/other_mobs = null
|
||||
var/disabilities = 0 //Carbon
|
||||
|
||||
@@ -473,7 +473,7 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
|
||||
ClickOn(T)
|
||||
|
||||
/mob/proc/log_message(message, message_type)
|
||||
if(!LAZYLEN(message) || !message_type)
|
||||
if(!LAZYLEN(message) || !message_type || !client)
|
||||
return
|
||||
|
||||
if(!islist(logging[message_type]))
|
||||
|
||||
Reference in New Issue
Block a user