1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

"TotalScoreV1" -> "LegacyTotalScore"

This commit is contained in:
Dan Balasescu 2023-06-06 17:25:28 +09:00
parent e402c6d2b4
commit 77c745cc94
2 changed files with 7 additions and 7 deletions

View File

@ -97,7 +97,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
{
StarRating = starRating,
Mods = mods,
TotalScoreV1 = new OsuScoreV1Processor(workingBeatmap.Beatmap, beatmap, mods).TotalScore,
LegacyTotalScore = new OsuScoreV1Processor(workingBeatmap.Beatmap, beatmap, mods).TotalScore,
AimDifficulty = aimRating,
SpeedDifficulty = speedRating,
SpeedNoteCount = speedNotes,

View File

@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Difficulty
protected const int ATTRIB_ID_FLASHLIGHT = 17;
protected const int ATTRIB_ID_SLIDER_FACTOR = 19;
protected const int ATTRIB_ID_SPEED_NOTE_COUNT = 21;
protected const int ATTRIB_ID_TOTAL_SCORE_V1 = 23;
protected const int ATTRIB_ID_LEGACY_TOTAL_SCORE = 23;
/// <summary>
/// The mods which were applied to the beatmap.
@ -46,10 +46,10 @@ namespace osu.Game.Rulesets.Difficulty
public int MaxCombo { get; set; }
/// <summary>
/// The total score achievable in ScoreV1.
/// The maximum achievable legacy total score.
/// </summary>
[JsonProperty("total_score_v1", Order = -2)]
public int TotalScoreV1 { get; set; }
[JsonProperty("legacy_total_score", Order = -2)]
public int LegacyTotalScore { get; set; }
/// <summary>
/// Creates new <see cref="DifficultyAttributes"/>.
@ -78,7 +78,7 @@ namespace osu.Game.Rulesets.Difficulty
public virtual IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()
{
yield return (ATTRIB_ID_MAX_COMBO, MaxCombo);
yield return (ATTRIB_ID_TOTAL_SCORE_V1, TotalScoreV1);
yield return (ATTRIB_ID_LEGACY_TOTAL_SCORE, LegacyTotalScore);
}
/// <summary>
@ -89,7 +89,7 @@ namespace osu.Game.Rulesets.Difficulty
public virtual void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values, IBeatmapOnlineInfo onlineInfo)
{
MaxCombo = (int)values[ATTRIB_ID_MAX_COMBO];
TotalScoreV1 = (int)values[ATTRIB_ID_TOTAL_SCORE_V1];
LegacyTotalScore = (int)values[ATTRIB_ID_LEGACY_TOTAL_SCORE];
}
}
}