mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Admins can now add footnotes to the roundstart command report (#71647)
## About The Pull Request Admins now have a verb to add footnotes to the roundstart threat report. These messages can be signed, and multiple can be submitted at once.  (If no footnotes are submitted, the report does not display the "additional notes" section) This ALSO adds a verb to delay the roundstart threat report indefinitely, to give some extra time. If you turn it off, be sure to toggle it back on when you're done! ## Why It's Good For The Game Gives admins a way to set the tone for a shift, give IC advisory on stuff, bully the command players, or just add some flavor to the report. We already give these chuckleheads enough platforms to shitpost from. What's one more? ## Changelog 🆑 admin: new admin verb -- Command Report Footnote. Lets you attach a signed message to the roundstart command report. admin: new admin verb -- Delay Command Report. Lets you delay the roundstart command report indefinitely. /🆑
This commit is contained in:
@@ -118,6 +118,8 @@ GLOBAL_LIST_INIT(admin_verbs_fun, list(
|
||||
/client/proc/admin_away,
|
||||
/client/proc/add_mob_ability,
|
||||
/client/proc/remove_mob_ability,
|
||||
/client/proc/command_report_footnote,
|
||||
/client/proc/delay_command_report,
|
||||
/datum/admins/proc/station_traits_panel,
|
||||
))
|
||||
GLOBAL_PROTECT(admin_verbs_fun)
|
||||
|
||||
@@ -386,3 +386,47 @@
|
||||
log_admin("[key_name(usr)] removed mob ability [ability_name] from mob [marked_mob].")
|
||||
SSblackbox.record_feedback("tally", "admin_verb", 1, "Remove Mob Ability") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/client/proc/command_report_footnote()
|
||||
set category = "Admin.Events"
|
||||
set name = "Command Report Footnote"
|
||||
set desc = "Adds a footnote to the roundstart command report."
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
var/datum/command_footnote/command_report_footnote = new /datum/command_footnote()
|
||||
SScommunications.block_command_report++ //Add a blocking condition to the counter until the inputs are done.
|
||||
|
||||
command_report_footnote.message = tgui_input_text(usr, "This message will be attached to the bottom of the roundstart threat report. Be sure to delay the roundstart report if you need extra time.", "P.S.")
|
||||
|
||||
if(!command_report_footnote.message)
|
||||
return
|
||||
|
||||
command_report_footnote.signature = tgui_input_text(usr, "Whose signature will appear on this footnote?", "Also sign here, here, aaand here.")
|
||||
|
||||
if(!command_report_footnote.signature)
|
||||
command_report_footnote.signature = "Classified"
|
||||
|
||||
SScommunications.command_report_footnotes += command_report_footnote
|
||||
SScommunications.block_command_report--
|
||||
|
||||
message_admins("[usr] has added a footnote to the command report: [command_report_footnote.message], signed [command_report_footnote.signature]")
|
||||
|
||||
/datum/command_footnote
|
||||
var/message
|
||||
var/signature
|
||||
|
||||
/client/proc/delay_command_report()
|
||||
set category = "Admin.Events"
|
||||
set name = "Delay Command Report"
|
||||
set desc = "Prevents the roundstart command report from being sent until toggled."
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if(SScommunications.block_command_report) //If it's anything other than 0, decrease. If 0, increase.
|
||||
SScommunications.block_command_report--
|
||||
message_admins("[usr] has enabled the roundstart command report.")
|
||||
else
|
||||
SScommunications.block_command_report++
|
||||
message_admins("[usr] has delayed the roundstart command report.")
|
||||
|
||||
Reference in New Issue
Block a user