mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
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:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user