mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Remove data systems in favor of global datums (#82943)
This commit is contained in:
@@ -253,11 +253,11 @@ ADMIN_VERB(run_weather, R_FUN, "Run Weather", "Triggers specific weather on the
|
||||
|
||||
ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a footnote to the roundstart command report.", ADMIN_CATEGORY_EVENTS)
|
||||
var/datum/command_footnote/command_report_footnote = new /datum/command_footnote()
|
||||
DScommunications.block_command_report += 1 //Add a blocking condition to the counter until the inputs are done.
|
||||
GLOB.communications_controller.block_command_report += 1 //Add a blocking condition to the counter until the inputs are done.
|
||||
|
||||
command_report_footnote.message = tgui_input_text(user, "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)
|
||||
DScommunications.block_command_report -= 1
|
||||
GLOB.communications_controller.block_command_report -= 1
|
||||
qdel(command_report_footnote)
|
||||
return
|
||||
|
||||
@@ -266,8 +266,8 @@ ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a
|
||||
if(!command_report_footnote.signature)
|
||||
command_report_footnote.signature = "Classified"
|
||||
|
||||
DScommunications.command_report_footnotes += command_report_footnote
|
||||
DScommunications.block_command_report--
|
||||
GLOB.communications_controller.command_report_footnotes += command_report_footnote
|
||||
GLOB.communications_controller.block_command_report--
|
||||
|
||||
message_admins("[user] has added a footnote to the command report: [command_report_footnote.message], signed [command_report_footnote.signature]")
|
||||
|
||||
@@ -276,5 +276,5 @@ ADMIN_VERB(command_report_footnote, R_ADMIN, "Command Report Footnote", "Adds a
|
||||
var/signature
|
||||
|
||||
ADMIN_VERB(delay_command_report, R_FUN, "Delay Command Report", "Prevents the roundstart command report from being sent; or forces it to send it delayed.", ADMIN_CATEGORY_EVENTS)
|
||||
DScommunications.block_command_report = !DScommunications.block_command_report
|
||||
message_admins("[key_name_admin(user)] has [(DScommunications.block_command_report ? "delayed" : "sent")] the roundstart command report.")
|
||||
GLOB.communications_controller.block_command_report = !GLOB.communications_controller.block_command_report
|
||||
message_admins("[key_name_admin(user)] has [(GLOB.communications_controller.block_command_report ? "delayed" : "sent")] the roundstart command report.")
|
||||
|
||||
Reference in New Issue
Block a user