Adds config option to prevent repeating maps (#18950)

* the map vote sound now haunts my dreams

* aa

* Update config/example/config.toml
This commit is contained in:
S34N
2022-09-06 10:31:03 +01:00
committed by GitHub
parent b1be1b5a36
commit 633393f575
3 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -21,8 +21,11 @@
/datum/vote/map/generate_choices()
for(var/x in subtypesof(/datum/map))
var/datum/map/M = x
if(initial(M.voteable))
choices.Add("[initial(M.fluff_name)] ([initial(M.technical_name)])")
if(!initial(M.voteable))
continue
if(GLOB.configuration.vote.non_repeating_maps && istype(SSmapping.map_datum, M))
continue
choices.Add("[initial(M.fluff_name)] ([initial(M.technical_name)])")
/datum/vote/map/announce()
..()