mirror of
https://github.com/ppy/osu
synced 2024-12-27 01:12:45 +00:00
Adjust rank when flashlight is enabled
This commit is contained in:
parent
718f06c690
commit
d66b97868c
@ -47,9 +47,25 @@ namespace osu.Game.Rulesets.Mods
|
||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||
{
|
||||
Combo.BindTo(scoreProcessor.Combo);
|
||||
|
||||
// Default value of ScoreProcessor's Rank in Flashlight Mod should be SS+
|
||||
scoreProcessor.Rank.Value = ScoreRank.XH;
|
||||
}
|
||||
|
||||
public ScoreRank AdjustRank(ScoreRank rank, double accuracy) => rank;
|
||||
public ScoreRank AdjustRank(ScoreRank rank, double accuracy)
|
||||
{
|
||||
switch (rank)
|
||||
{
|
||||
case ScoreRank.X:
|
||||
return ScoreRank.XH;
|
||||
|
||||
case ScoreRank.S:
|
||||
return ScoreRank.SH;
|
||||
|
||||
default:
|
||||
return rank;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user