From e8dee18b1e64c9528b0eca35b4f26bc979d37c48 Mon Sep 17 00:00:00 2001 From: BurgerLUA <8602857+BurgerLUA@users.noreply.github.com> Date: Tue, 9 Jul 2024 07:03:01 -0700 Subject: [PATCH] You can no longer vote for a map if it was the last 2 maps played, or the current map. (#1745) ## About The Pull Request You can no longer vote for a map if it was the last 2 maps played, or the current map. Ie if the map rotation is Alpha (Current) Beta (Last) Charlie (Second Last) then you can't vote for Alpha, Beta, or Charlie. ## Why It's Good For The Game Prevents a never-ending cycle of people voting for the same 3 maps. This is to prevent a spree of people voting for the same 2 maps (cough ## Proof Of Testing Untested. ## Changelog :cl: BurgerBB del: You can no longer vote for a map if it was the last 2 maps played, or the current map. /:cl: --------- Co-authored-by: Swift Co-authored-by: projectkepler-RU <99981766+projectkepler-ru@users.noreply.github.com> Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com> --- code/controllers/subsystem/persistence/_persistence.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/controllers/subsystem/persistence/_persistence.dm b/code/controllers/subsystem/persistence/_persistence.dm index e61966e8a06..35a7431ea1f 100644 --- a/code/controllers/subsystem/persistence/_persistence.dm +++ b/code/controllers/subsystem/persistence/_persistence.dm @@ -1,5 +1,5 @@ #define FILE_RECENT_MAPS "data/RecentMaps.json" -#define KEEP_ROUNDS_MAP 3 +#define KEEP_ROUNDS_MAP 2 //BUBBERSTATION CHANGE: 3 TO 2. SUBSYSTEM_DEF(persistence) name = "Persistence" @@ -111,7 +111,7 @@ SUBSYSTEM_DEF(persistence) for(var/name in SSpersistence.saved_maps) if(VM.map_name == name) run++ - if(run >= 2) //If run twice in the last KEEP_ROUNDS_MAP + 1 (including current) rounds, disable map for voting and rotation. + if(run >= 1) //If run twice in the last KEEP_ROUNDS_MAP + 1 (including current) rounds, disable map for voting and rotation. //BUBBERSTATION CHANGE 2 TO 1. blocked_maps += VM.map_name ///Updates the list of the most recent maps.