mirror of
https://github.com/ppy/osu
synced 2025-01-26 15:53:12 +00:00
Adjust rank
This commit is contained in:
parent
59da78b0d4
commit
73da423639
@ -95,6 +95,11 @@ namespace osu.Game.Rulesets.Scoring
|
||||
/// </summary>
|
||||
protected virtual bool DefaultFailCondition => Health.Value == Health.MinValue;
|
||||
|
||||
/// <summary>
|
||||
/// Used by specific mods to adjust <see cref="Rank"/>.
|
||||
/// </summary>
|
||||
public bool AdjustRank { get; set; }
|
||||
|
||||
protected ScoreProcessor()
|
||||
{
|
||||
Combo.ValueChanged += delegate { HighestCombo.Value = Math.Max(HighestCombo.Value, Combo.Value); };
|
||||
@ -104,9 +109,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
private ScoreRank rankFrom(double acc)
|
||||
{
|
||||
if (acc == 1)
|
||||
return ScoreRank.X;
|
||||
return (AdjustRank ? ScoreRank.XH : ScoreRank.X);
|
||||
if (acc > 0.95)
|
||||
return ScoreRank.S;
|
||||
return (AdjustRank ? ScoreRank.SH : ScoreRank.S);
|
||||
if (acc > 0.9)
|
||||
return ScoreRank.A;
|
||||
if (acc > 0.8)
|
||||
|
Loading…
Reference in New Issue
Block a user