Skip to content

Commit

Permalink
Merge pull request #25744 from peppy/adjust-mod-multipliers
Browse files Browse the repository at this point in the history
Adjust some mod multipliers for initial leaderboard sanity
  • Loading branch information
smoogipoo authored Dec 13, 2023
2 parents 9235f3d + e865de7 commit 8c75705
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,8 @@ public void TestModMultiplierUpdates()
InputManager.MoveMouseTo(this.ChildrenOfType<ModPresetPanel>().Single(preset => preset.Preset.Value.Name == "Half Time 0.5x"));
InputManager.Click(MouseButton.Left);
});
AddAssert("difficulty multiplier display shows correct value", () => modSelectOverlay.ChildrenOfType<ScoreMultiplierDisplay>().Single().Current.Value, () => Is.EqualTo(0.5));
AddAssert("difficulty multiplier display shows correct value",
() => modSelectOverlay.ChildrenOfType<ScoreMultiplierDisplay>().Single().Current.Value, () => Is.EqualTo(0.1).Within(Precision.DOUBLE_EPSILON));

// this is highly unorthodox in a test, but because the `ModSettingChangeTracker` machinery heavily leans on events and object disposal and re-creation,
// it is instrumental in the reproduction of the failure scenario that this test is supposed to cover.
Expand All @@ -796,7 +797,8 @@ public void TestModMultiplierUpdates()
AddStep("open customisation area", () => modSelectOverlay.CustomisationButton!.TriggerClick());
AddStep("reset half time speed to default", () => modSelectOverlay.ChildrenOfType<ModSettingsArea>().Single()
.ChildrenOfType<RevertToDefaultButton<double>>().Single().TriggerClick());
AddUntilStep("difficulty multiplier display shows correct value", () => modSelectOverlay.ChildrenOfType<ScoreMultiplierDisplay>().Single().Current.Value, () => Is.EqualTo(0.7));
AddUntilStep("difficulty multiplier display shows correct value",
() => modSelectOverlay.ChildrenOfType<ScoreMultiplierDisplay>().Single().Current.Value, () => Is.EqualTo(0.3).Within(Precision.DOUBLE_EPSILON));
}

private void waitForColumnLoad() => AddUntilStep("all column content loaded", () =>
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModClassic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public abstract class ModClassic : Mod

public override string Acronym => "CL";

public override double ScoreMultiplier => 1;
public override double ScoreMultiplier => 0.5;

public override IconUsage? Icon => FontAwesome.Solid.History;

Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Rulesets/Mods/ModSynesthesia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class ModSynesthesia : Mod
public override string Name => "Synesthesia";
public override string Acronym => "SY";
public override LocalisableString Description => "Colours hit objects based on the rhythm.";
public override double ScoreMultiplier => 1;
public override double ScoreMultiplier => 0.8;
public override ModType Type => ModType.Fun;
}
}
6 changes: 3 additions & 3 deletions osu.Game/Rulesets/Mods/RateAdjustModHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public double ScoreMultiplier
value -= 1;

if (SpeedChange.Value >= 1)
value /= 5;

return 1 + value;
return 1 + value / 5;
else
return 0.6 + value;
}
}

Expand Down

0 comments on commit 8c75705

Please sign in to comment.