From 75e6bb04d07eb3ec83f71dd0572dd340e3e9a9ce Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:38:16 +0300 Subject: [PATCH] [MIRROR] [NO GBP] Fixes the "Drop Pod: Syndies" deathmatch modifier. (#1657) (#2582) * [NO GBP] Fixes the "Drop Pod: Syndies" deathmatch modifier. (#82216) ## About The Pull Request I've had false memories of `pick_weight` working with assoc-value-less lists. ## Why It's Good For The Game This will fix an issue with deathmatch modifiers. ## Changelog :cl: fix: Fixed the "Drop Pod: Syndies" deathmatch modifier. /:cl: * [NO GBP] Fixes the "Drop Pod: Syndies" deathmatch modifier. --------- Co-authored-by: NovaBot <154629622+NovaBot13@users.noreply.github.com> Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/deathmatch/deathmatch_modifier.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/deathmatch/deathmatch_modifier.dm b/code/modules/deathmatch/deathmatch_modifier.dm index bf278b5fabc..c0d5807063f 100644 --- a/code/modules/deathmatch/deathmatch_modifier.dm +++ b/code/modules/deathmatch/deathmatch_modifier.dm @@ -363,6 +363,8 @@ /datum/deathmatch_modifier/drop_pod/proc/populate_contents() contents = typesof(/mob/living/basic/trooper/syndicate) + for(var/typepath in contents) //Make sure to set even weights for the keys or `pick_weight` won't work. + contents[typepath] = 1 /datum/deathmatch_modifier/drop_pod/monsters name = "Drop Pod: Monsters"