Merge pull request #34331 from Shadowlight213/expplayervisibility

Players can now see their own tracked playtime
This commit is contained in:
Jordan Brown
2018-01-19 09:44:35 -05:00
committed by CitadelStationBot
parent c6f227fc18
commit f3627b8428
4 changed files with 37 additions and 5 deletions
+2
View File
@@ -621,6 +621,8 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
/client/proc/add_verbs_from_config()
if(CONFIG_GET(flag/see_own_notes))
verbs += /client/proc/self_notes
if(CONFIG_GET(flag/use_exp_tracking))
verbs += /client/proc/self_playtime
#undef TOPIC_SPAM_DELAY
+15
View File
@@ -246,6 +246,21 @@ GLOBAL_VAR_INIT(normal_ooc_colour, OOC_COLOR)
browse_messages(null, usr.ckey, null, TRUE)
/client/proc/self_playtime()
set name = "View tracked playtime."
set category = "OOC"
set desc = "View the amount of playtime for roles the server has tracked."
if(!CONFIG_GET(flag/use_exp_tracking))
to_chat(usr, "<span class='notice'>Sorry, tracking is currently disabled.</span>")
return
var/list/body = list()
body += "<html><head><title>Playtime for [key]</title></head><BODY><BR>Playtime:"
body += get_exp_report()
body += "</BODY></HTML>"
usr << browse(body.Join(), "window=playerplaytime[ckey];size=550x615")
/client/proc/ignore_key(client)
var/client/C = client
if(C.key in prefs.ignoring)