Adds OOC verb to show the last round end report you've viewed (#37900)

You can now view your last round end report window with the "Your last round" verb in the OOC tab

stores the HTML in a data dir
This commit is contained in:
Jordan Brown
2018-05-21 17:47:49 -04:00
committed by letterjay
parent 6489ef5511
commit 96106ff2e8
3 changed files with 28 additions and 12 deletions
+3
View File
@@ -223,6 +223,9 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
prefs.last_id = computer_id //these are gonna be used for banning
fps = prefs.clientfps
if(fexists(roundend_report_file()))
verbs += /client/proc/show_previous_roundend_report
log_access("Login: [key_name(src)] from [address ? address : "localhost"]-[computer_id] || BYOND v[byond_version]")
var/alert_mob_dupe_login = FALSE
if(CONFIG_GET(flag/log_access))
+7
View File
@@ -294,3 +294,10 @@ GLOBAL_VAR_INIT(normal_ooc_colour, OOC_COLOR)
to_chat(src, "You can't ignore yourself.")
return
ignore_key(selection)
/client/proc/show_previous_roundend_report()
set name = "Your Last Round"
set category = "OOC"
set desc = "View the last round end report you've seen"
SSticker.show_roundend_report(src, TRUE)