From eb661079bc50c533ec748e31b497d7a96bf5aea6 Mon Sep 17 00:00:00 2001 From: LT3 <83487515+lessthnthree@users.noreply.github.com> Date: Sun, 3 Nov 2024 00:36:57 -0700 Subject: [PATCH] Map vote results announcement only shows eligible choices (#2315) ## About The Pull Request Filters the map vote results to only show the options that were in the current vote ## Why It's Good For The Game Less wondering why Kilostation wasn't chosen despite having the most votes. (Because there are too many players.) ## Proof Of Testing We gotta do this one live. ## Changelog :cl: LT3 qol: Map vote results only include choices included in the vote /:cl: --- .../code/controllers/subsystem/map_vote.dm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modular_zubbers/code/controllers/subsystem/map_vote.dm b/modular_zubbers/code/controllers/subsystem/map_vote.dm index b99bee2f330..ee74da21aa1 100644 --- a/modular_zubbers/code/controllers/subsystem/map_vote.dm +++ b/modular_zubbers/code/controllers/subsystem/map_vote.dm @@ -13,6 +13,12 @@ write_cache() update_tally_printout() + var/list/message_data = list() + for(var/map_id in map_vote.choices) + var/datum/map_config/map = config.maplist[map_id] + message_data += "[map.map_name] - [map_vote_cache[map_id]]" + var/filtered_vote_results = "[span_bold("Vote Results (Including Carryover)")]\n\n[message_data.Join("\n")]" + if(admin_override) send_map_vote_notice("Admin Override is in effect. Map will not be changed.", "Tallies are recorded and saved.") return @@ -36,11 +42,11 @@ ASSERT(winner, "No winner found in map vote.") set_next_map(config.maplist[winner]) - var/list/messages = list(tally_printout) - messages += list("