Skip to content

Commit

Permalink
Code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bokkiewokkie committed Oct 29, 2023
1 parent 871ed1f commit 421f17b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
20 changes: 16 additions & 4 deletions nsv13/code/controllers/subsystem/overmap_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,18 @@ SUBSYSTEM_DEF(overmap_mode)
*/

var/text = "<b>[GLOB.station_name]</b>, <br>You have been assigned the following mission by <b>[capitalize(mode.starting_faction)]</b> and are expected to complete it with all due haste. Please ensure your crew is properly informed of your objectives and delegate tasks accordingly."
var/title = "Mission Briefing: [random_capital_letter()][random_capital_letter()][random_capital_letter()]-[GLOB.round_id]"
var/static/title = ""
if(!announced_objectives)
title += "Mission Briefing: [random_capital_letter()][random_capital_letter()][random_capital_letter()]-[GLOB.round_id]"
else //Add an extension if this isn't roundstart
title += "-Ext."

text = "[text] <br><br> [mode.brief] <br><br> Objectives:"

for(var/datum/overmap_objective/O in mode.objectives)
text = "[text] <br> - [O.brief]"

if ( !SSovermap_mode.announced_objectives ) // Prevents duplicate report spam when assigning additional objectives
if(!SSovermap_mode.announced_objectives) // Prevents duplicate report spam when assigning additional objectives
O.print_objective_report()

print_command_report(text, title, TRUE)
Expand Down Expand Up @@ -325,10 +329,18 @@ SUBSYSTEM_DEF(overmap_mode)
mode.objectives += new /datum/overmap_objective/tickets
*/

if(get_active_player_count(TRUE,TRUE,FALSE) > 4)
mode.objectives += new /datum/overmap_objective/clear_system/rubicon
var/datum/star_system/rubicon = SSstar_system.system_by_id("Rubicon")
if(get_active_player_count(TRUE,TRUE,FALSE) > 10)
if(length(rubicon.enemies_in_system))
mode.objectives += new /datum/overmap_objective/clear_system/rubicon
else //If Rubicon is empty we go to Dolos
mode.objectives += new /datum/overmap_objective/clear_system/dolos
else
mode.objectives += new /datum/overmap_objective/tickets
for(var/datum/faction/F in SSstar_system.factions)
F.send_fleet(custom_difficulty = (mode.difficulty + 1)) //Extension is more challenging
escalation += 1
message_admins("Overmap difficulty has been increased by 1!")

instance_objectives()

Expand Down
6 changes: 4 additions & 2 deletions nsv13/code/game/gamemodes/overmap/objectives/rubicon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
desc = "Defeat all enemies in the [system_name] system"
brief = desc
target_system = SSstar_system.system_by_id(system_name)
target_system.hidden = FALSE
RegisterSignal(SSstar_system.find_main_overmap(), COMSIG_SHIP_KILLED_FLEET, PROC_REF(check_completion))

/datum/overmap_objective/clear_system/check_completion()
Expand All @@ -38,8 +39,9 @@
/datum/overmap_objective/clear_system/rubicon
system_name = "Rubicon"
extension_supported = TRUE
required_players = 4
required_players = 10

/datum/overmap_objective/clear_system/dolos
system_name = "Dolos Remnants"
required_players = 4
extension_supported = TRUE //Only if Rubicon is not available
required_players = 10
2 changes: 1 addition & 1 deletion nsv13/code/modules/overmap/factions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Set up relationships.
if(main_ship)
current_system = SSstar_system.ships[main_ship]["current_system"]
var/list/possible_spawns = list()
for(var/datum/star_system/starsys in SSstar_system.systems)
for(var/datum/star_system/starsys in SSstar_system.neutral_zone_systems) //Neutral zone to prevent overcrowding the Syndicate and friendly sectors
if(starsys != current_system && !starsys.hidden && (lowertext(starsys.alignment) == lowertext(src.name) || starsys.alignment == "unaligned" || starsys.alignment == "uncharted")) //Find one of our base systems and try to send a fleet out from there.
possible_spawns += starsys
if(!possible_spawns.len && !override)
Expand Down

0 comments on commit 421f17b

Please sign in to comment.