From 233fee6667c852baf12e13add598882588949880 Mon Sep 17 00:00:00 2001 From: Jack Edge Date: Tue, 21 Jun 2016 20:01:50 +0100 Subject: [PATCH] Fun->Show Tip verb added :cl: coiax rscadd: Our administrators, here at /tg/, don't get enough credit for their wealth of experience and knowledge. Now they get the chance to share that with you by giving out custom tips! /:cl: - Show Tip verb, asks for input, then outputs it to all players in exactly the format that tips are displayed in. Also supresses the automatic tip if given before it's sent out. --- code/modules/admin/admin_verbs.dm | 3 ++- code/modules/admin/verbs/randomverbs.dm | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 088c3713073..aeeb64fed24 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -97,7 +97,8 @@ var/list/admin_verbs_fun = list( /client/proc/toggle_nuke, /client/proc/mass_zombie_infection, /client/proc/mass_zombie_cure, - /client/proc/polymorph_all + /client/proc/polymorph_all, + /client/proc/show_tip ) var/list/admin_verbs_spawn = list( /datum/admins/proc/spawn_atom, /*allows us to spawn instances*/ diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 546dd4548d2..5b307cda2f0 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -1062,3 +1062,27 @@ var/list/datum/outfit/custom_outfits = list() //Admin created outfits wabbajack(M) message_admins("Mass polymorph started by [who_did_it] is complete.") + +/client/proc/show_tip() + set category = "Fun" + set name = "Show Tip" + set desc = "Sends a tip (that you specify) to all players. After all \ + you're the experienced player here." + + if(!holder) + return + + var/input = input(usr, "Please specify your tip that you want to send to the players.", "Tip", "") as message|null + if(!input) + return + + if(ticker) + ticker.tipped = TRUE + + world << "Tip of the round: \ + [html_encode(input)]" + + message_admins("[key_name_admin(usr)] sent \"[input]\" as the \ + Tip of the Round.") + log_admin("[key_name(usr)] sent \"[input]\" as the Tip of the Round.") + feedback_add_details("admin_verb","TIP")