Standardizes bomb logging (#40474)

Fixes #39976

A good number of things were missing various parts of the logging (going to GLOB.bombers, not going to client logs, not logging to game, ect), or doing incorrect things like passing admin verbs to saved logs.

Unified all the necessary actions under a single proc log_bomber() which handles everything in most use cases. This way the log isn't all jumbled up with inconsistent messages, everything's one format so you can quickly find what you need to bwoink the right person.
This commit is contained in:
ShizCalev
2018-09-30 22:03:00 -04:00
committed by oranges
parent fc78bb3d80
commit b7739a4a23
20 changed files with 52 additions and 90 deletions

View File

@@ -32,10 +32,7 @@
/obj/structure/closet/crate/secure/proc/boom(mob/user)
if(user)
to_chat(user, "<span class='danger'>The crate's anti-tamper system activates!</span>")
var/message = "[ADMIN_LOOKUPFLW(user)] has detonated [src.name]."
GLOB.bombers += message
message_admins(message)
log_game("[key_name(user)] has detonated [src.name].")
log_bomber(user, "has detonated a", src)
for(var/atom/movable/AM in src)
qdel(AM)
explosion(get_turf(src), 0, 1, 5, 5)