Tip of the Round (#1625)

Pretty simple. 10 seconds before the round begins, the game will choose a tip and display it.
Tips are handled in the config.
Admins also have a command to display their own customized tip, and also a command to display a pregenerated tip.
Both commands can be ran at any point in the run to good effect. The customized tip will replace the default, Tip of the round that procs 10 seconds before round-start tip, if it is run during the lobby.
This commit is contained in:
LordFowl
2017-01-28 16:01:47 -05:00
committed by skull132
parent 7d7bfe186a
commit c7832ae1d3
5 changed files with 277 additions and 3 deletions

View File

@@ -127,7 +127,9 @@ var/list/admin_verbs_fun = list(
/client/proc/roll_dices,
/datum/admins/proc/create_admin_fax,
/datum/admins/proc/call_supply_drop,
/datum/admins/proc/call_drop_pod
/datum/admins/proc/call_drop_pod,
/client/proc/show_tip,
/client/proc/fab_tip
)
var/list/admin_verbs_spawn = list(
@@ -1032,10 +1034,10 @@ var/list/admin_verbs_cciaa = list(
if (alert("Are you sure you want to wipe [target.name]? They will be ghosted and their job slot freed.", "Confirm AI Termination", "No", "No", "Yes") != "Yes")
return
log_and_message_admins("admin-wiped [key_name_admin(target)]'s core.")
target.do_wipe_core()
/client/proc/restart_sql()
set category = "Debug"
set name = "Reconnect SQL"

View File

@@ -949,3 +949,50 @@ Traitors and the like can also be revived with the previous role mostly intact.
usr << "Random events disabled"
message_admins("Admin [key_name_admin(usr)] has disabled random events.", 1)
feedback_add_details("admin_verb","TRE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/fab_tip()
set category = "Admin"
set name = "Fabricate 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)
return
ticker.selected_tip = input
// If we've already tipped, then send it straight away.
if(ticker.tipped)
ticker.send_tip_of_the_round()
ticker.selected_tip = initial(ticker.selected_tip)
message_admins("[key_name_admin(usr)] sent a tip of the round.")
log_admin("[key_name(usr)] sent \"[input]\" as the Tip of the Round.")
feedback_add_details("admin_verb","TIP")
/client/proc/show_tip()
set category = "Debug"
set name = "Show Tip"
set desc = "Sends a tip (that the config specifies) to all players. After all \
you're not the experienced player here."
if(!holder)
return
if(!ticker)
return
ticker.send_tip_of_the_round()
message_admins("[key_name_admin(usr)] sent a pregenerated tip of the round.")
log_admin("[key_name(usr)] sent a pregenerated Tip of the Round.")
feedback_add_details("admin_verb","FAP")