Skip to content

Conversation

vinylspiders
Copy link
Contributor

@vinylspiders vinylspiders commented Sep 26, 2024

About The Pull Request

So this was caused by the change in #86012 .

They tried to fix a case for polls with amount_to_pick set to greater than 1 having null entries in the returned lists, and succeeded at that.

However, in doing so they messed up the control flow of the proc such that now it's returning early with an empty list() whenever the amount is equal to 1.

The assumption was, when amount_to_pick was equal to 1 specifically then the return value would be either a null value or the valid mob. However, now what was being returned was either a list() or the valid mob because that code was no longer ever being reached.

For example

image

image

Fixes NovaSector/NovaSector#4427

Fixes both bugs in a way that should not cause any problems, and adjusts documentation to make it clearer what the return value of this proc is expected to be.

Why It's Good For The Game

Fixes a bug that pretty much effects the majority of ghost polls as most of them are only asking for 1 player.

Changelog

🆑
fix: fixes pulsing tumor failing to spawn the elite if no ghosts respond to the poll and leaving you in a bugged state, and possibly other related issues
/:cl:

@tgstation-server tgstation-server added the Fix Rewrites a bug so it appears in different circumstances label Sep 26, 2024
@Ghommie Ghommie merged commit e5f023a into tgstation:master Sep 28, 2024
26 checks passed
github-actions bot added a commit that referenced this pull request Sep 28, 2024
tgstation-ci bot added a commit that referenced this pull request Sep 28, 2024
@vinylspiders vinylspiders deleted the fixpolls branch September 28, 2024 07:34
@Majkl-J
Copy link
Contributor

Majkl-J commented Oct 24, 2024

Oh fuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix Rewrites a bug so it appears in different circumstances
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pulsing Tumors Fail to Activate
5 participants