1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 08:22:56 +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, StarRating = starRating,
Mods = mods, Mods = mods,
TotalScoreV1 = new OsuScoreV1Processor(workingBeatmap.Beatmap, beatmap, mods).TotalScore, LegacyTotalScore = new OsuScoreV1Processor(workingBeatmap.Beatmap, beatmap, mods).TotalScore,
AimDifficulty = aimRating, AimDifficulty = aimRating,
SpeedDifficulty = speedRating, SpeedDifficulty = speedRating,
SpeedNoteCount = speedNotes, 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_FLASHLIGHT = 17;
protected const int ATTRIB_ID_SLIDER_FACTOR = 19; protected const int ATTRIB_ID_SLIDER_FACTOR = 19;
protected const int ATTRIB_ID_SPEED_NOTE_COUNT = 21; 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> /// <summary>
/// The mods which were applied to the beatmap. /// The mods which were applied to the beatmap.
@ -46,10 +46,10 @@ namespace osu.Game.Rulesets.Difficulty
public int MaxCombo { get; set; } public int MaxCombo { get; set; }
/// <summary> /// <summary>
/// The total score achievable in ScoreV1. /// The maximum achievable legacy total score.
/// </summary> /// </summary>
[JsonProperty("total_score_v1", Order = -2)] [JsonProperty("legacy_total_score", Order = -2)]
public int TotalScoreV1 { get; set; } public int LegacyTotalScore { get; set; }
/// <summary> /// <summary>
/// Creates new <see cref="DifficultyAttributes"/>. /// Creates new <see cref="DifficultyAttributes"/>.
@ -78,7 +78,7 @@ namespace osu.Game.Rulesets.Difficulty
public virtual IEnumerable<(int attributeId, object value)> ToDatabaseAttributes() public virtual IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()
{ {
yield return (ATTRIB_ID_MAX_COMBO, MaxCombo); yield return (ATTRIB_ID_MAX_COMBO, MaxCombo);
yield return (ATTRIB_ID_TOTAL_SCORE_V1, TotalScoreV1); yield return (ATTRIB_ID_LEGACY_TOTAL_SCORE, LegacyTotalScore);
} }
/// <summary> /// <summary>
@ -89,7 +89,7 @@ namespace osu.Game.Rulesets.Difficulty
public virtual void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values, IBeatmapOnlineInfo onlineInfo) public virtual void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values, IBeatmapOnlineInfo onlineInfo)
{ {
MaxCombo = (int)values[ATTRIB_ID_MAX_COMBO]; MaxCombo = (int)values[ATTRIB_ID_MAX_COMBO];
TotalScoreV1 = (int)values[ATTRIB_ID_TOTAL_SCORE_V1]; LegacyTotalScore = (int)values[ATTRIB_ID_LEGACY_TOTAL_SCORE];
} }
} }
} }