mirror of
https://github.com/ppy/osu.git
synced 2024-09-21 16:07:24 +08:00
fixed CI
This commit is contained in:
parent
6a483b5882
commit
1355af491e
@ -162,17 +162,19 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
{
|
||||
double starRating = lookup.BeatmapInfo.Difficulty.OverallDifficulty;
|
||||
|
||||
ModDoubleTime? DT = lookup.OrderedMods.OfType<ModDoubleTime>().SingleOrDefault();
|
||||
if (DT != null) starRating *= DT.SpeedChange.Value;
|
||||
ModDoubleTime? dt = lookup.OrderedMods.OfType<ModDoubleTime>().SingleOrDefault();
|
||||
if (dt != null) starRating *= dt.SpeedChange.Value;
|
||||
|
||||
starRating += (double)lookup.Ruleset.OnlineID / 10;
|
||||
|
||||
var attributes = new DifficultyAttributes();
|
||||
attributes.StarRating = starRating;
|
||||
attributes.Mods = lookup.OrderedMods;
|
||||
var attributes = new DifficultyAttributes
|
||||
{
|
||||
StarRating = starRating,
|
||||
Mods = lookup.OrderedMods,
|
||||
|
||||
// Use this as ruleset ID field
|
||||
attributes.MaxCombo = lookup.Ruleset.OnlineID;
|
||||
// Use this as ruleset ID field
|
||||
MaxCombo = lookup.Ruleset.OnlineID
|
||||
};
|
||||
|
||||
return Task.FromResult<StarDifficulty?>(new StarDifficulty(attributes));
|
||||
}
|
||||
@ -180,7 +182,8 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
|
||||
private partial class TestPerformanceCalculator : PerformanceCalculator
|
||||
{
|
||||
public TestPerformanceCalculator(Ruleset ruleset) : base(ruleset)
|
||||
public TestPerformanceCalculator(Ruleset ruleset)
|
||||
: base(ruleset)
|
||||
{
|
||||
}
|
||||
|
||||
@ -191,10 +194,10 @@ namespace osu.Game.Tests.Visual.SongSelect
|
||||
Assert.AreEqual(Ruleset.RulesetInfo.OnlineID, score.Ruleset.OnlineID);
|
||||
Assert.AreEqual(Ruleset.RulesetInfo.OnlineID, attributes.MaxCombo);
|
||||
|
||||
var result = new PerformanceAttributes();
|
||||
result.Total = attributes.StarRating * 100;
|
||||
|
||||
result.Total += Ruleset.RulesetInfo.OnlineID;
|
||||
var result = new PerformanceAttributes
|
||||
{
|
||||
Total = attributes.StarRating * 100 + Ruleset.RulesetInfo.OnlineID
|
||||
};
|
||||
|
||||
if (attributes.Mods.Any(m => m is ModHidden))
|
||||
result.Total += 69;
|
||||
|
@ -158,7 +158,7 @@ namespace osu.Game.Skinning.Components
|
||||
{
|
||||
// Skip if not relevant attribute
|
||||
if (!((Attribute.Value >= BeatmapAttribute.Title && Attribute.Value <= BeatmapAttribute.Creator)
|
||||
|| Attribute.Value == BeatmapAttribute.RankedStatus || Attribute.Value == BeatmapAttribute.Source))
|
||||
|| Attribute.Value == BeatmapAttribute.RankedStatus || Attribute.Value == BeatmapAttribute.Source))
|
||||
return;
|
||||
|
||||
valueDictionary[BeatmapAttribute.Title] = new RomanisableString(beatmap.Value.BeatmapInfo.Metadata.TitleUnicode, beatmap.Value.BeatmapInfo.Metadata.Title);
|
||||
|
Loading…
Reference in New Issue
Block a user