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
@@ -12,12 +12,15 @@
var/disable_default_vote = TRUE
/// Enable map voting?
var/enable_map_voting = FALSE
/// If TRUE, you will not be able to vote for the current map
var/non_repeating_maps = TRUE
/datum/configuration_section/vote_configuration/load_data(list/data)
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
CONFIG_LOAD_BOOL(prevent_dead_voting, data["prevent_dead_voting"])
CONFIG_LOAD_BOOL(disable_default_vote, data["disable_default_vote"])
CONFIG_LOAD_BOOL(enable_map_voting, data["enable_map_voting"])
CONFIG_LOAD_BOOL(non_repeating_maps, data["non_repeating_maps"])
CONFIG_LOAD_NUM(vote_time, data["vote_time"])
CONFIG_LOAD_NUM(autotransfer_initial_time, data["autotransfer_initial_time"])