Repository navigation
Add B50 Support #71
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
Merged
Merged
Add B50 Support #71
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a92f1ca
feat(shared): add ArcaeaScoringMode and clear-type bonus to play rating
283375 a8f8c08
feat(core): store scoring mode in database properties
283375 60385e3
feat(core): add B50 potential calculation
283375 a488b96
refactor(app.ui): unify potential display precision at 3 decimals
283375 2cb98aa
feat(app.ui): scoring-mode-aware overview potential card
283375 b0c7806
feat(app.ui): scoring mode setting in database manage screen
283375 0f1391c
feat(app.ui): database tab follows the scoring mode
283375 32668b4
feat(app.ui): add clear-type selector to play rating calculator
283375 8984fba
feat(app.ui): warn about missing clear type under B50 scoring
283375 e19f911
feat(app.ui): seed chart recommend target by scoring mode
283375 536b402
fix(app.ui): actually apply clear bonus and 6-decimal output in calcu…
283375 dcba64b
refactor(app.ui): update best list internals to the new names
283375 95a51f9
refactor(app.ui): calculator clear-type row as a preferences widget
283375 8e47a7c
fix: st3 cleartype parsing
283375 3aa493f
test: add st3 importer tests
283375 e65c78d
chore: format code
283375 5e546f2
feat(core): store the scoring mode when a database is created
283375 74b133d
fix(shared): treat a non-positive chart constant as no rating
283375 0401994
test: add B50 potential tests with real save data
283375 0703e6d
refactor: R30 calculating and tests
283375 24c29bf
docs: add potential and st3 docs
283375 1b091e3
ci: update deepseek model
283375 c1873b9
Revert "ci: update deepseek model name"
283375 be6ee71
ci: update deepseek model name
283375 2b98190
refactor: PotentialRepository
283375 df79ab3
refactor: drop incremental R30 update mode
283375 071b53d
refactor(app.ui): seed chart recommend target with the overall potential
283375 c5cb99d
chore: cleanups
283375 5fc50c2
docs: sync implementations and formatting
283375 daa45d2
clear type bonus and tests
283375 d1943c9
refactor: PLAY_RATING_CLEAR_BONUS usages
283375 119c067
test: fix wrong assertEqual orders
283375 a78d1a6
test: add tests
283375 7bba161
ui improvements
283375 e02c739
final cleanup
283375 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/src/main/java/xyz/sevive/arcaeaoffline/helpers/PotentialCalculation.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| package xyz.sevive.arcaeaoffline.helpers | ||
|
|
||
| import xyz.sevive.arcaeaoffline.core.calculators.calculatePotentialB30R10 | ||
| import xyz.sevive.arcaeaoffline.core.calculators.calculatePotentialB50 | ||
| import xyz.sevive.arcaeaoffline.core.constants.ArcaeaScoringMode | ||
| import xyz.sevive.arcaeaoffline.core.database.repositories.PotentialGroups | ||
|
|
||
| internal fun ArcaeaScoringMode.calculatePotential(potentialGroups: PotentialGroups): Double = | ||
| when (this) { | ||
| ArcaeaScoringMode.B30_R10 -> calculatePotentialB30R10(potentialGroups.b30.total, potentialGroups.r10.total) | ||
| ArcaeaScoringMode.B50 -> calculatePotentialB50(potentialGroups.b50.total, potentialGroups.b10.total) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Consider future refactors?