Adds logging in the form of an attack log.log (now enabled by default)

You can now drag PDAs onto yourself to open the screen
Disables the fire damage causing husking.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2926 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
VivianFoxfoot@gmail.com
2012-01-08 03:30:25 +00:00
parent 85157b5a68
commit 1f29357168
8 changed files with 72 additions and 8 deletions

View File

@@ -833,7 +833,8 @@
if (href_list["BlueSpaceArtillery"])
var/mob/M = locate(href_list["BlueSpaceArtillery"])
M << "You've been hit by bluespace artillery!"
log_admin("[key_name(M)] has been hit by Bluespace Artillery fired by [src.owner]")
message_admins("[key_name(M)] has been hit by Bluespace Artillery fired by [src.owner]")
var/obj/effect/stop/S
S = new /obj/effect/stop
S.victim = M
@@ -842,8 +843,11 @@
del(S)
var/turf/T = get_turf(M)
if(T)
T.ex_act(2)
if(T && (istype(T,/turf/simulated/floor/)))
if(prob(80))
T:break_tile_to_plating()
else
T:break_tile()
if(M.health == 1)
M.gib()
@@ -2524,6 +2528,25 @@
onclose(usr,"server_logfile")
return
/obj/admins/proc/view_atk_log()
set category = "Admin"
set desc="Shows todays server attack log in new window"
set name="Show Server Attack Log"
var/path = "data/logs/[time2text(world.realtime,"YYYY")]/[time2text(world.realtime,"MM")]-[time2text(world.realtime,"Month")]/[time2text(world.realtime,"DD")]-[time2text(world.realtime,"Day")] Attack.log"
var/output = {"<html>
<head>
<title>[time2text(world.realtime,"Day, MMM DD, YYYY")] - Attack Log</title>
</head>
<body>
<pre>
[file2text(path)]
</pre>
</body>
</html>"}
usr << browse(output,"window=server_logfile")
onclose(usr,"server_logfile")
return
/client/proc/unjobban_panel()
set name = "Unjobban Panel"
set category = "Admin"