Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit dee3073

Browse files
authored
Should fix station goals never triggering (#22856)
* Update gamemode_subsystem.dm * Update gamemode_subsystem.dm * Update gamemode_subsystem.dm * Update gamemode_subsystem.dm * Update gamemode_subsystem.dm
1 parent 7fc87d5 commit dee3073

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

yogstation/code/modules/storytellers/gamemode_subsystem.dm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,12 +594,26 @@ SUBSYSTEM_DEF(gamemode)
594594
)
595595
query_round_game_mode.Execute()
596596
qdel(query_round_game_mode)
597+
if(report)
598+
addtimer(CALLBACK(src, PROC_REF(send_intercept)), rand(600, 1800))
597599
generate_station_goals()
598600
handle_post_setup_roundstart_events()
599601
handle_post_setup_points()
600602
roundstart_event_view = FALSE
601603
return TRUE
602604

605+
/datum/controller/subsystem/gamemode/proc/send_intercept()
606+
var/intercepttext = "<b><i>Central Command Status Summary</i></b><hr>"
607+
intercepttext += "<b>Central Command has intercepted and is attempting to decode a Syndicate transmission with vital information regarding their movements in this station's sector.</b>"
608+
intercepttext += generate_station_goal_report()
609+
610+
if(CONFIG_GET(flag/auto_blue_alert))
611+
print_command_report(intercepttext, "Central Command Status Summary", announce=FALSE)
612+
priority_announce("A summary has been copied and printed to all communications consoles.\n\n[generate_station_trait_report()]", "Enemy communication intercepted. Security level elevated.", ANNOUNCER_INTERCEPT)
613+
if(SSsecurity_level.get_current_level_as_number() < SEC_LEVEL_BLUE)
614+
SSsecurity_level.set_level(SEC_LEVEL_BLUE)
615+
else
616+
print_command_report(intercepttext, "Central Command Status Summary")
603617

604618
///Handles late-join antag assignments
605619
/datum/controller/subsystem/gamemode/proc/make_antag_chance(mob/living/carbon/human/character)

0 commit comments

Comments
 (0)