mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Different day? Different map rotation rules. (#19159)
* Different day? Different rotation rules. * Make this mergeable * Tweaks * Styling
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user