From d5eee09abc613f2ae92e8da0848dc4f2d8983f01 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Thu, 30 May 2024 13:11:20 -0400 Subject: [PATCH] Random map days no longer can choose the same map twice in a row (#25565) * random map days no longer can choose the same map twice in a row * Update code/controllers/subsystem/SSticker.dm Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> --------- Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> --- code/controllers/subsystem/SSticker.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/controllers/subsystem/SSticker.dm b/code/controllers/subsystem/SSticker.dm index e641ed030c4..273bc5b2238 100644 --- a/code/controllers/subsystem/SSticker.dm +++ b/code/controllers/subsystem/SSticker.dm @@ -141,6 +141,8 @@ SUBSYSTEM_DEF(ticker) var/list/pickable_types = list() for(var/x in subtypesof(/datum/map)) var/datum/map/M = x + if(istype(SSmapping.map_datum, M)) // Random will never choose the same map twice in a row. + continue if(initial(M.voteable) && length(GLOB.clients) >= initial(M.min_players_random)) pickable_types += M