feat(custom-rulesets): support custom rulesets (#23)
* feat(custom_ruleset): add custom rulesets support * feat(custom-ruleset): add version check * feat(custom-ruleset): add LegacyIO API to get ruleset hashes * feat(pp): add check for rulesets whose pp cannot be calculated * docs(readme): update README to include support for custom rulesets * fix(custom-ruleset): make `rulesets` empty instead of throw a error when version check is disabled Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore(custom-ruleset): apply the latest changes of generatorc891bcd159ande25041ad3b* feat(calculator): add fallback performance calculation for unsupported modes * fix(calculator): remove debug print * fix: resolve reviews * feat(calculator): add difficulty calculation checks --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Version: 2025.10.19
|
||||
# Version: 2025.1012.1
|
||||
# Auto-generated by scripts/generate_ruleset_attributes.py.
|
||||
# Schema generated by https://github.com/GooGuTeam/custom-rulesets
|
||||
# Do not edit this file directly.
|
||||
@@ -91,30 +91,12 @@ class ManiaPerformanceAttributes(PerformanceAttributes):
|
||||
ManiaDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
HishigataPerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
HishigataDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
RushPerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
RushDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
SentakkiPerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
SentakkiDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
SoyokazePerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
SoyokazeDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
class TauPerformanceAttribute(PerformanceAttributes):
|
||||
aim: float
|
||||
speed: float
|
||||
@@ -132,6 +114,22 @@ class TauDifficultyAttributes(DifficultyAttributes):
|
||||
overall_difficulty: float
|
||||
|
||||
|
||||
RushPerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
RushDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
HishigataPerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
HishigataDifficultyAttributes = DifficultyAttributes
|
||||
|
||||
|
||||
SoyokazePerformanceAttributes = PerformanceAttributes
|
||||
|
||||
|
||||
SoyokazeDifficultyAttributes = DifficultyAttributes
|
||||
PerformanceAttributesUnion = (
|
||||
OsuPerformanceAttributes | TaikoPerformanceAttributes | ManiaPerformanceAttributes | PerformanceAttributes
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user