-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add helper functions for having one of multiple, or all of a set of subtypes #7821
Comments
@NBKelly master...heyshiloh:netrunner:nr-7821-multi-subtypes here is helpers + tests, but i am having trouble finding places in the code where this would easily refactor existing logic. Do you have examples of the above pattern that I could test refactor in? |
I might have imagined a need for the has-every-subtype one (it's still good to have), but for multiple subtypes (this will be used for some dawn cards too):
|
@NBKelly i'll take a look at refactoring these with the method i wrote and let you know |
I see that greek philosopher suite holds logic in |
Ah, no need to touch those ones if it doesn't make the code simpler |
it should make the brewak-multiple function simpler, its just separated out logic so i will have to make sure im not breaking anything |
This ended up being the case, it is a different situation than others because it applies break quantity per subtype rather than just checking if any subtype master...heyshiloh:netrunner:nr-7821-multi-subtypes Here is the diff for now. not trying to bombard you with PRs so let me know if you have time for this and I will send it over |
Make as many PR's as you want as fast as you want :) Worst case scenario is we just look at them later. |
one time @francescopellegrini opened like 22 one line prs in a row lol. i reviewed and merged every one. don't worry about us. |
@NBKelly @NoahTheDuke You two are great, I still aim to be mindful about wasting time or generating too much noise 😅 |
Writing this so I don't forget later
We've written
enough times that they might as well be helper functions for clarity, like:
The text was updated successfully, but these errors were encountered: