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

HK: abstract and default grub counts #4336

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qwint
Copy link
Contributor

@qwint qwint commented Dec 7, 2024

What is this fixing or adding?

Medic had some usecase where the grub goal not being set before pre_fill caused issues

How was this tested?

ran the grub tests i wrote before to make sure nothing changed, did not test the goal between set_rules and pre_fill

If this makes graphical changes, please attach screenshots.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Dec 7, 2024

# defaulting so completion condition isn't incorrect before pre_fill
self.grub_count = 46
self.grub_player_count = {player: 46}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioned in DM's, but you probably want to set this based on the required grub count

Copy link
Member

@Exempt-Medic Exempt-Medic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment about always requiring 46 Grubs, but otherwise the code LGTM. I honestly love this a lot more than the previous code. Tested using a minimal accessibility yaml with plando'ed inaccessible Grub on an "All" Grubs win condition and saw that it would now fail properly (during plando).

Copy link
Member

@Exempt-Medic Exempt-Medic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New change addressed my comment

@Exempt-Medic Exempt-Medic added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Dec 7, 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: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants