mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
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:
@@ -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()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user