-
Notifications
You must be signed in to change notification settings - Fork 78
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 PP not being calculated correctly for nightcore scores #186
Conversation
I guess this would be one way to roll forward with ppy/osu#24640, but there is a chance something somewhere else could have relied on the inheritance and might now break, so not sure whether this should be the solution here... Check is slightly rewritten since it wasn't making much sense to me previously (why add nightcore to allowed mods if double time is selected?)
Can I get an ELI5 of how this fixes things? |
This broke because we removed the |
To confirm, |
One thing that could be considered here is to take this implementation (which has tests) and do a conversion of The reasoning is that the I'd even suggest moving that to the base game project. |
Not really. That part is checking if double time is in
Sure, I'm not opposed. Especially so that it will maybe help us spot this sort of thing earlier in future due to avoiding cross project dependencies. |
Right, I missed the variable change at the start... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silly GitHub... I had a pending review comment, but it's not critical.
if (mods.Any(m => m is ModDoubleTime)) | ||
if (allowedMods.Any(type => type.IsSubclassOf(typeof(ModDoubleTime))) && mods.Any(m => m is ModNightcore)) | ||
allowedMods.Add(allMods.Single(m => m is ModNightcore).GetType()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose we remove this condition altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...by adding nightcore to DifficultyAdjustmentMods
game-side, I presume? I'm not sure how you'd preserve behaviour otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking it could be added unconditionally to allowedMods
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmmmmmmm I think I prefer what's already here. You're probably right that unconditionally adding wouldn't probably ever be a problem but it is what it is.
Fix PP not being calculated correctly for nightcore scores
I guess this would be one way to roll forward with ppy/osu#24640, but there is a chance something somewhere else could have relied on the inheritance and might now break, so not sure whether this should be the solution here...
Check is slightly rewritten since it wasn't making much sense to me previously (why add nightcore to allowed mods if double time is selected?)