Skip to content

Commit

Permalink
[MIRROR] [NO GBP] Fixes the "Drop Pod: Syndies" deathmatch modifier. (#…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Co-authored-by: Ghom <[email protected]>
  • Loading branch information
3 people authored Mar 27, 2024
1 parent 52bd172 commit 75e6bb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/deathmatch/deathmatch_modifier.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 75e6bb0

Please sign in to comment.