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

feat(match2): Handle submatch/subgroup on hearthstone #5217

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

Conversation

LuckeLucky
Copy link
Collaborator

Summary

Submatch implementations is a copy from Stormgate/Starcraft

How did you test this change?

/dev and sandbox

@LuckeLucky LuckeLucky marked this pull request as draft December 16, 2024 16:22
@LuckeLucky LuckeLucky marked this pull request as ready for review December 16, 2024 16:37
Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

can do a proper review tomorrow when on pc

scores[opponentIndex] = 0
end
for _, game in pairs(games) do
if game.map and String.startsWith(game.map, 'Submatch') and not game.resultType then
Copy link
Collaborator

Choose a reason for hiding this comment

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

needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

@LuckeLucky LuckeLucky requested a review from hjpalpha December 17, 2024 16:58
@LuckeLucky
Copy link
Collaborator Author

So if Map=Submatch X we should only look at the first game as there are no subgroup details. In hearthsone I never saw winner=skip so we can ignore handling game.status

@LuckeLucky LuckeLucky requested a review from hjpalpha December 18, 2024 17:58
@hjpalpha
Copy link
Collaborator

imo wait for #5228 so we can make use of it here so we do not have to construct submatches in a way that mirror deprecated stuff but instead the new stuff

@Rathoz
Copy link
Collaborator

Rathoz commented Dec 22, 2024

5228 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants