Improved logging for pointing, bodythrows, and date rollovers (#65137)

General logging improvements:

    Adds pointing to emote logging; shows the thing being pointed at
    Logs impacts of body throws; previously unlogged
    Displays player logs in order, even when the date rolls over
This commit is contained in:
dragomagol
2022-02-25 06:28:17 +00:00
committed by GitHub
parent 6c2b0380b4
commit cb12e9e088
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@
visible_message(span_danger("[src] crashes into [victim][extra_speed ? " really hard" : ""], knocking them both over!"),\
span_userdanger("You violently crash into [victim][extra_speed ? " extra hard" : ""]!"))
playsound(src,'sound/weapons/punch1.ogg',50,TRUE)
log_combat(src, victim, "crashed into")
//Throwing stuff
/mob/living/carbon/proc/toggle_throw_mode()
+1
View File
@@ -422,6 +422,7 @@
if(!..())
return FALSE
visible_message("<span class='infoplain'>[span_name("[src]")] points at [A].</span>", span_notice("You point at [A]."))
log_message("points at [A]", LOG_EMOTE)
return TRUE
+1 -1
View File
@@ -487,7 +487,7 @@
if(LOG_RADIO_EMOTE)
colored_message = "(RADIOEMOTE) [colored_message]"
var/list/timestamped_message = list("\[[time_stamp()]\] [key_name(src)] [loc_name(src)] (Event #[LAZYLEN(logging[smessage_type])])" = colored_message)
var/list/timestamped_message = list("\[[time_stamp(format = "YYYY-MM-DD hh:mm:ss")]\] [key_name(src)] [loc_name(src)] (Event #[LAZYLEN(logging[smessage_type])])" = colored_message)
logging[smessage_type] += timestamped_message