TG: 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.
Revision: r2926
Author: VivianFoxfoot

Other misc changes to logging.
This commit is contained in:
Ren Erthilo
2012-04-09 18:15:16 +01:00
parent 61d5eff00a
commit 3b22ebee38
5 changed files with 61 additions and 7 deletions

View File

@@ -2758,6 +2758,25 @@ var/global/BSACooldown = 0
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"