Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC2: Fix Kerrigan Primal Form on Half Completion #3419

Merged
merged 2 commits into from
May 30, 2024

Conversation

Salzkorn
Copy link
Contributor

What is this fixing or adding?

Fixes the half_completion value for the kerrigan_primal_status option incorrectly counting completed missions.

How was this tested?

Generating a seed with 5 missions and comparing Kerrigan primal status in-game after 2 completed missions and after 3 completed missions.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label May 29, 2024
@Ziktofel Ziktofel added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label May 29, 2024
worlds/sc2/Client.py Outdated Show resolved Hide resolved
@Ziktofel
Copy link
Collaborator

Ziktofel commented May 29, 2024

it sums True evaluations of this: (mission_id * VICTORY_MODULO + get_location_offset(mission_id)) in ctx.checked_locations

Co-authored-by: Fabian Dill <[email protected]>
@Salzkorn
Copy link
Contributor Author

I've tested and applied the suggested change. As Ziktofel explained, this is a sum of bools. It could be clearer that it's that, but we use this pattern in multiple places, so changing it would increase the scope of this PR quite a bit.

@ScipioWright ScipioWright added waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. and removed waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels May 30, 2024
@Berserker66 Berserker66 merged commit 2fe8c43 into ArchipelagoMW:main May 30, 2024
16 checks passed
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants