-
-
Notifications
You must be signed in to change notification settings - Fork 382
Enables proper "green shifts" (goals, sec level) in dynamic #15727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
fc0c03c
439ca08
6e1da5b
b125dfc
99a35a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,13 +257,23 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1) | |
| return rule.round_result() | ||
| return ..() | ||
|
|
||
| /datum/game_mode/dynamic/generate_station_goals() | ||
| if(round(shown_threat) < 30) | ||
| if(length(current_players[CURRENT_LIVING_ANTAGS])) | ||
| station_goal_budget = 2 | ||
| else if(round(shown_threat < 20)) | ||
| station_goal_budget = INFINITY | ||
| return ..() | ||
|
|
||
| /datum/game_mode/dynamic/send_intercept() | ||
| . = "<b><i>Central Command Status Summary</i></b><hr>" | ||
| var/green_shift = FALSE | ||
| switch(round(shown_threat)) | ||
| if(0 to 19) | ||
| if(!current_players[CURRENT_LIVING_ANTAGS].len) | ||
| . += "<b>Peaceful Waypoint</b></center><BR>" | ||
| . += "Your station orbits deep within controlled, core-sector systems and serves as a waypoint for routine traffic through Nanotrasen's trade empire. Due to the combination of high security, interstellar traffic, and low strategic value, it makes any direct threat of violence unlikely. Your primary enemies will be incompetence and bored crewmen: try to organize team-building events to keep staffers interested and productive." | ||
|
Comment on lines
273
to
275
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this allow roundstart antag metaing? |
||
| green_shift = TRUE | ||
| else | ||
| . += "<b>Core Territory</b></center><BR>" | ||
| . += "Your station orbits within reliably mundane, secure space. Although Nanotrasen has a firm grip on security in your region, the valuable resources and strategic position aboard your station make it a potential target for infiltrations. Monitor crew for non-loyal behavior, but expect a relatively tame shift free of large-scale destruction. We expect great things from your station." | ||
|
|
@@ -291,9 +301,11 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1) | |
| . += G.get_report() | ||
|
|
||
| print_command_report(., "Central Command Status Summary", announce=FALSE) | ||
| priority_announce("A summary has been copied and printed to all communications consoles.", "Enemy communication intercepted. Security level elevated.", "intercept") | ||
| if(GLOB.security_level < SEC_LEVEL_BLUE) | ||
| set_security_level(SEC_LEVEL_BLUE) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new send_intercept no longer sets the security level at all. The roundstart security level doesn't get set at all with this PR.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was a bug from a completely different PR, fixed in #15813 |
||
| if(green_shift) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be probability based to allow fake greens / fake blues like our non-dynamic modes have. |
||
| 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", "commandreport") | ||
| else | ||
| priority_announce("A summary has been copied and printed to all communications consoles.", "Enemy communication intercepted. Security level elevated.", "intercept") | ||
|
|
||
|
|
||
| /datum/game_mode/dynamic/proc/show_threatlog(mob/admin) | ||
| if(!SSticker.HasRoundStarted()) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be able to be used as an antag check, which this is.