Skip to content

Commit

Permalink
Make CereStation eligible for random map selection on 60+ players (Pa…
Browse files Browse the repository at this point in the history
  • Loading branch information
dearmochi authored Nov 24, 2023
1 parent 3679215 commit 86d28cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/SSticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ SUBSYSTEM_DEF(ticker)
var/list/pickable_types = list()
for(var/x in subtypesof(/datum/map))
var/datum/map/M = x
if(initial(M.voteable))
if(initial(M.voteable) && length(GLOB.clients) >= initial(M.min_players_random))
pickable_types += M

var/datum/map/target_map = pick(pickable_types)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/mapping/base_map_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
var/webmap_url
/// Is this map voteable?
var/voteable = TRUE
/// Minimum amount of players required for this map to be eligible in random map picks.
var/min_players_random = 0
1 change: 1 addition & 0 deletions code/modules/mapping/cerestation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
technical_name = "CereStation"
map_path = "_maps/map_files/cerestation/cerestation.dmm"
webmap_url = "https://affectedarc07.github.io/SS13WebMap/Paradise/CereStation/"
min_players_random = 60

0 comments on commit 86d28cc

Please sign in to comment.