1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 19:02:58 +08:00

Revert hacky fade value and fix test

This commit is contained in:
Joppe27 2022-12-01 12:16:58 +01:00
parent f9a9ab1d9b
commit a7f4325d3c
2 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,8 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
{
var controlPointInfo = new ControlPointInfo();
controlPointInfo.Add(0, new TimingControlPoint { BeatLength = 500 });
if (withKiai)
controlPointInfo.Add(0, new EffectControlPoint { KiaiMode = true });
@ -28,6 +30,8 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
{
ControlPointInfo = controlPointInfo
});
Beatmap.Value.Track.Start();
}
}
}

View File

@ -16,8 +16,6 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
{
internal partial class LegacyKiaiGlow : BeatSyncedContainer
{
private const float colour_compensation = 1.58f;
public LegacyKiaiGlow()
{
AlwaysPresent = true;
@ -60,7 +58,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
{
if (effectPoint.KiaiMode)
this.FadeTo(colour_compensation, 180);
this.FadeIn(180);
else
this.FadeOut(180);
}