Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions code/__DEFINES/dynamic.dm

This file was deleted.

8 changes: 0 additions & 8 deletions code/__HELPERS/logging/dynamic.dm

This file was deleted.

13 changes: 0 additions & 13 deletions code/__HELPERS/roundend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ GLOBAL_LIST_INIT(achievements_unlocked, list())

CHECK_TICK

//Set news report and mode result
SSdynamic.set_round_result()

to_chat(world, span_infoplain(span_big(span_bold("<BR><BR><BR>The round has ended."))))
log_game("The round has ended.")
send2chat(new /datum/tgs_message_content("[GLOB.round_id ? "Round [GLOB.round_id]" : "The round has"] just ended."), CONFIG_GET(string/channel_announce_end_game))
Expand Down Expand Up @@ -354,16 +351,6 @@ GLOBAL_LIST_INIT(achievements_unlocked, list())
else
parts += "[FOURSPACES]<i>Nobody died this shift!</i>"

parts += "[FOURSPACES]Threat level: [SSdynamic.threat_level]"
parts += "[FOURSPACES]Threat left: [SSdynamic.mid_round_budget]"
if(SSdynamic.roundend_threat_log.len)
parts += "[FOURSPACES]Threat edits:"
for(var/entry as anything in SSdynamic.roundend_threat_log)
parts += "[FOURSPACES][FOURSPACES][entry]<BR>"
parts += "[FOURSPACES]Executed rules:"
for(var/datum/dynamic_ruleset/rule in SSdynamic.executed_rules)
parts += "[FOURSPACES][FOURSPACES][rule.ruletype] - <b>[rule.name]</b>: -[rule.cost + rule.scaled_times * rule.scaling_cost] threat"

return parts.Join("<br>")

/client/proc/roundend_report_file()
Expand Down
64 changes: 64 additions & 0 deletions code/controllers/subsystem/communications.dm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,70 @@ SUBSYSTEM_DEF(communications)
printed_paper.add_raw_text(sending.content)
printed_paper.update_appearance()

/datum/controller/subsystem/communications/proc/send_roundstart_report(greenshift)
addtimer(CALLBACK(src, PROC_REF(send_roundstart_report_delayed), greenshift), rand(600 SECONDS, 1800 SECONDS))

/datum/controller/subsystem/communications/proc/send_roundstart_report_delayed(greenshift = TRUE)
if(SScommunications.block_command_report) //If we don't want the report to be printed just yet, we put it off until it's ready
addtimer(CALLBACK(src, PROC_REF(send_roundstart_report_delayed), greenshift), 10 SECONDS)
return

. = "<b><i>Nanotrasen Department of Intelligence Threat Advisory, Spinward Sector, TCD [time2text(world.realtime, "DDD, MMM DD")], [CURRENT_STATION_YEAR]:</i></b><hr>"
. += "All quiet on the Western Front."

SSstation.generate_station_goals(greenshift ? INFINITY : CONFIG_GET(number/station_goal_budget))

var/list/datum/station_goal/goals = SSstation.get_station_goals()
if(length(goals))
var/list/texts = list("<hr><b>Special Orders for [station_name()]:</b><br>")
for(var/datum/station_goal/station_goal as anything in goals)
station_goal.on_report()
texts += station_goal.get_report()
. += texts.Join("<hr>")

var/list/trait_list_strings = list()
for(var/datum/station_trait/station_trait as anything in SSstation.station_traits)
if(!station_trait.show_in_report)
continue
trait_list_strings += "[station_trait.get_report()]<BR>"
if(trait_list_strings.len > 0)
. += "<hr><b>Identified shift divergencies:</b><BR>" + trait_list_strings.Join()

if(length(command_report_footnotes))
var/footnote_pile = ""

for(var/datum/command_footnote/footnote as anything in command_report_footnotes)
footnote_pile += "[footnote.message]<BR>"
footnote_pile += "<i>[footnote.signature]</i><BR>"
footnote_pile += "<BR>"

. += "<hr><b>Additional Notes: </b><BR><BR>" + footnote_pile

#ifndef MAP_TEST
print_command_report(., "[command_name()] Status Summary", announce=FALSE)
if(greenshift)
priority_announce(
"Thanks to the tireless efforts of our security and intelligence divisions, \
there are currently no credible threats to [station_name()]. \
All station construction projects have been authorized. Have a secure shift!",
"Security Report",
SSstation.announcer.get_rand_report_sound(),
color_override = "green",
)
else
if(SSsecurity_level.get_current_level_as_number() < SEC_LEVEL_BLUE)
SSsecurity_level.set_level(SEC_LEVEL_BLUE, announce = FALSE)
priority_announce(
"[SSsecurity_level.current_security_level.elevating_to_announcement]\n\n\
A summary has been copied and printed to all communications consoles.",
"Security level elevated.",
ANNOUNCER_INTERCEPT,
color_override = SSsecurity_level.current_security_level.announcement_color,
)
#endif

return .

#undef COMMUNICATION_COOLDOWN
#undef COMMUNICATION_COOLDOWN_AI
#undef COMMUNICATION_COOLDOWN_MEETING
Loading