Skip to content
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

[MIRROR] Prevent space-required station goals from running on planetary maps #274

Merged
merged 1 commit into from
Oct 25, 2023
Merged
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
6 changes: 3 additions & 3 deletions code/game/gamemodes/game_mode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@
/datum/game_mode/proc/generate_station_goals(greenshift)
var/goal_budget = greenshift ? INFINITY : CONFIG_GET(number/station_goal_budget)
var/list/possible = subtypesof(/datum/station_goal)
// Remove all goals that require space if space is not present
if(SSmapping.is_planetary())
for(var/datum/station_goal/goal in possible)
if(goal.requires_space)
///Removes all goals that require space if space is not present
for(var/datum/station_goal/goal as anything in possible)
if(initial(goal.requires_space))
possible -= goal
var/goal_weights = 0
while(possible.len && goal_weights < goal_budget)
Expand Down
Loading