This commit is contained in:
tigercat2000
2018-11-15 11:03:16 -08:00
parent 693eae879a
commit 9e51b56cbd
32 changed files with 71 additions and 60 deletions
+7
View File
@@ -3240,6 +3240,13 @@
ticker.mode.station_goals += G
modify_goals()
else if(href_list["showdetails"])
if(!check_rights(R_ADMIN))
return
var/text = html_decode(href_list["showdetails"])
usr << browse("<HTML><HEAD><TITLE>Details</TITLE></HEAD><BODY><TT>[replacetext(text, "\n", "<BR>")]</TT></BODY></HTML>",
"window=show_details;size=500x200")
// Library stuff
else if(href_list["library_book_id"])
var/isbn = sanitizeSQL(href_list["library_book_id"])
+6 -6
View File
@@ -937,19 +937,19 @@ Traitors and the like can also be revived with the previous role mostly intact.
/client/proc/reset_all_tcs()
set category = "Admin"
set name = "Reset NTSL2 Configuration"
set desc = "Resets NTSL2 to the default configuration."
set name = "Reset NTTC Configuration"
set desc = "Resets NTTC to the default configuration."
if(!check_rights(R_ADMIN))
return
var/confirm = alert(src, "You sure you want to reset NTSL2?", "Confirm", "Yes", "No")
var/confirm = alert(src, "You sure you want to reset NTTC?", "Confirm", "Yes", "No")
if(confirm != "Yes")
return
GLOB.ntsl2_config.reset()
log_admin("[key_name(usr)] reset NTSL2 scripts.")
message_admins("[key_name_admin(usr)] reset NTSL2 scripts.")
GLOB.nttc_config.reset()
log_admin("[key_name(usr)] reset NTTC scripts.")
message_admins("[key_name_admin(usr)] reset NTTC scripts.")
feedback_add_details("admin_verb","RAT2") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/list_ssds()