Skip to content

Move score multiplier fields in Mod to dedicated ScoreMultiplierCalculator classes#650

Open
Rian8337 wants to merge 23 commits into
osudroid:masterfrom
Rian8337:mod-score-multiplier-calculation
Open

Move score multiplier fields in Mod to dedicated ScoreMultiplierCalculator classes#650
Rian8337 wants to merge 23 commits into
osudroid:masterfrom
Rian8337:mod-score-multiplier-calculation

Conversation

@Rian8337

Copy link
Copy Markdown
Member

This PR moves Mod.scoreMultiplier and Mod.migrationScoreMultiplier in Mod classes to dedicated ScoreMultiplierCalculator classes. This makes it easier to perform mod score multiplier changes as the "legacy" score multipliers as per database version 5 are kept in LegacyScoreMultiplierCalculator. This means we do not need to override migrationScoreMultiplier with old values if we want to change scoreMultiplier, which is easy to miss.

ScoreMultiplierCalculator includes multipliers that have not been finalized yet. See TODO.

@Rian8337 Rian8337 requested a review from Copilot June 25, 2026 07:48
@Rian8337 Rian8337 added the release-stream:main Issues/pull requests that targets the main release stream. label Jun 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Rian8337 Rian8337 mentioned this pull request Jun 29, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-stream:main Issues/pull requests that targets the main release stream. size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants