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

Fix mod icons potentially showing incorrectly at daily challenge intro #29560

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Aug 22, 2024

Prefer using the beatmap's rulesets over the current user selection.

Closes #29559.

Prefer using the beatmap's rulesets over the current user selection.

Closes ppy#29559.
StarRatingDisplay starRatingDisplay;

IBeatmapInfo beatmap = item.Beatmap;
Ruleset ruleset = rulesets.GetRuleset(item.Beatmap.Ruleset.ShortName)?.CreateInstance() ?? Ruleset.Value.CreateInstance();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this still fallback to Ruleset.Value.CreateInstance()? I don't see the point, it can literally be only more wrong than the left half of this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair point.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you think the mods just shouldn't show in this case? Because I think that would be the closest alternative (we need a ruleset to show the ?? mods).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd just delete the fallback here and be done with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right. I guess it's always going to be an official ruleset anyway.

@bdach bdach merged commit 8d7053d into ppy:master Aug 27, 2024
11 of 13 checks passed
@peppy peppy deleted the fix-daily-challenge-intro-mod-display branch August 29, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When Daily Challenge has a forced mod that is only on a certain ruleset, the game will display a "unknown" mod
3 participants