mirror of
https://github.com/ppy/osu
synced 2024-12-27 17:32:56 +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)
|
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||||
{
|
{
|
||||||
Combo.BindTo(scoreProcessor.Combo);
|
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)
|
public virtual void ApplyToDrawableRuleset(DrawableRuleset<T> drawableRuleset)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user