Commit 97670005 authored by Sprok0's avatar Sprok0 Committed by Intigracy
Browse files

Adds/fixes some logging (#12473)

* logging

* don't log fifty times

* re-added attempted plastique logging
parent 16a90de7
......@@ -309,6 +309,7 @@
src.visible_message("<span class='danger'>[src] sucks the fluids from [T]!</span>")
to_chat(T, "<span class='danger'>You have been absorbed by the changeling!</span>")
playsound(get_turf(src), 'sound/effects/lingabsorbs.ogg', 50, 1)
add_attacklogs(src, T, "absorbed")
T.dna.real_name = T.real_name //Set this again, just to be sure that it's properly set.
changeling.absorbed_dna |= T.dna
......
......@@ -282,6 +282,8 @@ var/list/obj/machinery/requests_console/allConsoles = list()
if(!istype(M,/mob/new_player) && M.client)
to_chat(M, "<b><font size = 3><font color = red>[department] announcement:</font color> [message]</font size></b>")
M << sound(announceSound)
log_say("[key_name(usr)] (@[usr.x],[usr.y],[usr.z]) has made an announcement from \the [src]: [message]")
message_admins("[key_name_admin(usr)] has made an announcement from \the [src].", 1)
announceAuth = 0
message = ""
screen = 0
......
......@@ -79,7 +79,7 @@ Refactored AI modules by N3X15
to_chat(target, "[senderName] has uploaded a change to the laws you must follow, using \a [name]. From now on: ")
targetName="[fmtSubject(M)])"
var/time = time2text(world.realtime,"hh:mm:ss")
var/log_entry = "[fmtSubject(sender)]) used [src.name] on [targetName]"
var/log_entry = "[fmtSubject(sender)]) used [src.name] on [targetName] ([formatJumpTo(sender, "JMP")])"
lawchanges.Add("[time] : [log_entry]")
message_admins(log_entry)
log_game(log_entry)
......
......@@ -67,10 +67,9 @@
return
to_chat(user, "Planting explosives...")
if(ismob(target))
var/mob/M = target
user.attack_log += "\[[time_stamp()]\] <font color='red'> [user.real_name] tried planting [name] on [target:real_name] ([target:ckey])</font>"
msg_admin_attack("[user.real_name] ([user.ckey]) tried planting [name] on [target:real_name] ([target:ckey]) (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[user.x];Y=[user.y];Z=[user.z]'>JMP</a>)")
add_attacklogs(user, M, "tried planting [name] on")
user.visible_message("<span class='warning'>[user.name] is trying to plant some kind of explosive on [target.name]!</span>")
if(do_after(user, target, 50) && user.Adjacent(target))
......@@ -87,9 +86,12 @@
loc = null
if (ismob(target))
if(!ismob(target))
add_gamelogs(user, "planted [name] on [target.name]", tp_link = TRUE)
else
var/mob/M=target
target:attack_log += "\[[time_stamp()]\]<font color='orange'> Had the [name] planted on them by [user.real_name] ([user.ckey])</font>"
add_attacklogs(user, M, "planted [name] on", addition = "timer set to [timer] seconds")
if(!glue_act)
user.visible_message("<span class='warning'>[user.name] finished planting an explosive on [target.name]!</span>")
......
......@@ -64,6 +64,8 @@
user.visible_message("<span class='warning'>[user] has forced [our_mob] onto the spike, killing it instantly!</span>")
add_attacklogs(user, our_mob, "meatspiked", admin_warn = FALSE)
our_mob.death(0)
our_mob.ghostize()
......
......@@ -311,6 +311,8 @@
user.death()
var/suicidesound = pick('sound/misc/suicide/suicide1.ogg','sound/misc/suicide/suicide2.ogg','sound/misc/suicide/suicide3.ogg','sound/misc/suicide/suicide4.ogg','sound/misc/suicide/suicide5.ogg','sound/misc/suicide/suicide6.ogg')
playsound(get_turf(src), pick(suicidesound), 10, channel = 125)
log_attack("<font color='red'>[key_name(user)] committed suicide with \the [src].</font>")
user.attack_log += "\[[time_stamp()]\] <font color='red'> [user.real_name] committed suicide with \the [src]</font>"
else
to_chat(user, "<span class = 'notice'>Ow...</span>")
user.apply_effect(110,AGONY,0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment