mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Fix skin fallback not working as expected
This commit is contained in:
parent
010262c764
commit
c72ebcfd53
@ -34,10 +34,10 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Argon
|
|||||||
if (hitObject == null)
|
if (hitObject == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var baseSample = new VolumeAwareHitSampleInfo(hitObject.CreateHitSampleInfo(hitType == HitType.Rim ? HitSampleInfo.HIT_CLAP : HitSampleInfo.HIT_NORMAL));
|
var originalSample = hitObject.CreateHitSampleInfo(hitType == HitType.Rim ? HitSampleInfo.HIT_CLAP : HitSampleInfo.HIT_NORMAL);
|
||||||
|
|
||||||
// If the sample is provided by a legacy skin, we should not try and do anything special.
|
// If the sample is provided by a legacy skin, we should not try and do anything special.
|
||||||
if (skinSource.FindProvider(s => s.GetSample(baseSample) != null) is LegacySkin)
|
if (skinSource.FindProvider(s => s.GetSample(originalSample) != null) is LegacySkinTransformer)
|
||||||
{
|
{
|
||||||
base.Play(hitType, strong);
|
base.Play(hitType, strong);
|
||||||
return;
|
return;
|
||||||
@ -49,15 +49,15 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Argon
|
|||||||
{
|
{
|
||||||
PlaySamples(new ISampleInfo[]
|
PlaySamples(new ISampleInfo[]
|
||||||
{
|
{
|
||||||
new VolumeAwareHitSampleInfo(hitObject.CreateHitSampleInfo(hitType == HitType.Rim ? HitSampleInfo.HIT_CLAP : HitSampleInfo.HIT_NORMAL), true),
|
new VolumeAwareHitSampleInfo(originalSample, true),
|
||||||
// TODO: flourish should only play every time_between_flourishes.
|
// TODO: flourish should only play every time_between_flourishes.
|
||||||
new VolumeAwareHitSampleInfo(hitObject.CreateHitSampleInfo(hitType == HitType.Rim ? HitSampleInfo.HIT_FLOURISH : string.Empty), true),
|
new VolumeAwareHitSampleInfo(hitObject.CreateHitSampleInfo(hitType == HitType.Rim ? HitSampleInfo.HIT_FLOURISH : string.Empty), true),
|
||||||
baseSample
|
new VolumeAwareHitSampleInfo(originalSample)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlaySamples(new ISampleInfo[] { new VolumeAwareHitSampleInfo(baseSample) });
|
PlaySamples(new ISampleInfo[] { new VolumeAwareHitSampleInfo(new VolumeAwareHitSampleInfo(originalSample)) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user