Linter diagnostics + bans non-var relative pathing

This commit is contained in:
MarinaGryphon
2021-06-20 18:16:45 -04:00
committed by VirgoBot
parent 79eefa9f83
commit 385fa640af
311 changed files with 11232 additions and 8984 deletions
+10 -10
View File
@@ -3,7 +3,7 @@
// they can only be read by admins and moderators.
// a single admin report
datum/admin_report/var
/datum//admin_report/var
ID // the ID of the report
body // the content of the report
author // key of the author
@@ -13,7 +13,7 @@ datum/admin_report/var
offender_key // store the key of the offender
offender_cid // store the cid of the offender
datum/report_topic_handler
/datum//report_topic_handler
Topic(href,href_list)
..()
var/client/C = locate(href_list["client"])
@@ -31,7 +31,7 @@ world/New()
report_topic_handler = new
// add a new news datums
proc/make_report(body, author, okey, cid)
/proc/make_report(body, author, okey, cid)
var/savefile/Reports = new("data/reports.sav")
var/list/reports
var/lastID
@@ -57,7 +57,7 @@ proc/make_report(body, author, okey, cid)
Reports["lastID"] << lastID
// load the reports from disk
proc/load_reports()
/proc/load_reports()
var/savefile/Reports = new("data/reports.sav")
var/list/reports
@@ -68,7 +68,7 @@ proc/load_reports()
return reports
// check if there are any unhandled reports
client/proc/unhandled_reports()
/client/proc/unhandled_reports()
if(!src.holder) return 0
var/list/reports = load_reports()
@@ -80,7 +80,7 @@ client/proc/unhandled_reports()
return 0
// checks if the player has an unhandled report against him
client/proc/is_reported()
/client/proc/is_reported()
var/list/reports = load_reports()
for(var/datum/admin_report/N in reports) if(!N.done)
@@ -90,7 +90,7 @@ client/proc/is_reported()
return 0
// display only the reports that haven't been handled
client/proc/display_admin_reports()
/client/proc/display_admin_reports()
set category = "Admin"
set name = "Display Admin Reports"
if(!src.holder) return
@@ -118,7 +118,7 @@ client/proc/display_admin_reports()
usr << browse(output, "window=news;size=600x400")
client/proc/Report(mob/M as mob in world)
/client/proc/Report(mob/M as mob in world)
set category = "Admin"
if(!src.holder)
return
@@ -136,7 +136,7 @@ client/proc/Report(mob/M as mob in world)
spawn(1)
display_admin_reports()
client/proc/mark_report_done(ID as num)
/client/proc/mark_report_done(ID as num)
if(!src.holder || src.holder.level < 0)
return
@@ -157,7 +157,7 @@ client/proc/mark_report_done(ID as num)
Reports["reports"] << reports
client/proc/edit_report(ID as num)
/client/proc/edit_report(ID as num)
if(!src.holder || src.holder.level < 0)
to_chat(src, "<b>You tried to modify the news, but you're not an admin!</b>")
return