mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 06:04:23 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user