Different day? Different map rotation rules. (#19159)

* Different day? Different rotation rules.

* Make this mergeable

* Tweaks

* Styling
This commit is contained in:
AffectedArc07
2022-11-06 19:52:19 +00:00
committed by GitHub
parent da3814cba1
commit ad0cbe4b1d
7 changed files with 123 additions and 3 deletions
+7 -2
View File
@@ -23,8 +23,13 @@
var/datum/map/M = x
if(!initial(M.voteable))
continue
if(GLOB.configuration.vote.non_repeating_maps && istype(SSmapping.map_datum, M))
continue
// Skip the current map if IF
// - Map rotate doesnt have a mode for today and the config is enabled for it
// - Map rotate has a mode for the day and it ISNT full random
if(((!SSmaprotate.setup_done) && GLOB.configuration.vote.non_repeating_maps) || (SSmaprotate.setup_done && (SSmaprotate.rotation_mode == MAPROTATION_MODE_NO_DUPLICATES)))
// And of course, if the current map is the same
if(istype(SSmapping.map_datum, M))
continue
choices.Add("[initial(M.fluff_name)] ([initial(M.technical_name)])")
/datum/vote/map/announce()