mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -144,6 +144,7 @@
|
||||
|
||||
if (holder.level >= 5)//Game Admin********************************************************************
|
||||
verbs += /obj/admins/proc/view_txt_log
|
||||
verbs += /obj/admins/proc/view_atk_log
|
||||
//verbs += /client/proc/cmd_mass_modify_object_variables --Merged with view variables
|
||||
verbs += /client/proc/cmd_admin_list_open_jobs
|
||||
verbs += /client/proc/cmd_admin_direct_narrate
|
||||
@@ -288,6 +289,7 @@
|
||||
verbs -= /client/proc/object_talk
|
||||
verbs -= /client/proc/strike_team
|
||||
verbs -= /obj/admins/proc/view_txt_log
|
||||
verbs -= /obj/admins/proc/view_atk_log
|
||||
//verbs -= /client/proc/cmd_mass_modify_object_variables --Merged with view variables
|
||||
verbs -= /client/proc/cmd_admin_list_open_jobs
|
||||
verbs -= /client/proc/cmd_admin_direct_narrate
|
||||
|
||||
Reference in New Issue
Block a user