Skip to content

Commit

Permalink
Merge pull request #49 from swoolcock/missing-hitsounds
Browse files Browse the repository at this point in the history
Transfer hitsounds to crafted maps
  • Loading branch information
swoolcock authored Aug 19, 2020
2 parents b7d4600 + 352b025 commit 4a9d9f5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions osu.Game.Rulesets.Rush/Beatmaps/RushCraftedBeatmapConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ namespace osu.Game.Rulesets.Rush.Beatmaps
/// 1) Slider velocity and BPM are currently ignored, but may be used in the future
/// 2) Kiai will be used in the future to indicate boss sections
/// 3) New combo is ignored
/// 4) Hitsounds are only transferred for minions
/// </remarks>
public class RushCraftedBeatmapConverter : BeatmapConverter<RushHitObject>
{
Expand Down Expand Up @@ -105,6 +104,7 @@ protected override IEnumerable<RushHitObject> ConvertHitObject(HitObject origina
{
StartTime = original.StartTime,
EndTime = original.GetEndTime(),
Samples = original.Samples,
Lane = LanedHitLane.Air
};
}
Expand All @@ -115,6 +115,7 @@ protected override IEnumerable<RushHitObject> ConvertHitObject(HitObject origina
{
StartTime = original.StartTime,
EndTime = original.GetEndTime(),
Samples = original.Samples,
Lane = LanedHitLane.Ground
};
}
Expand All @@ -124,7 +125,8 @@ protected override IEnumerable<RushHitObject> ConvertHitObject(HitObject origina
case HitObjectType.DualHit:
yield return new DualHit
{
StartTime = original.StartTime
StartTime = original.StartTime,
Samples = original.Samples,
};

break;
Expand All @@ -133,7 +135,8 @@ protected override IEnumerable<RushHitObject> ConvertHitObject(HitObject origina
yield return new MiniBoss
{
StartTime = original.StartTime,
EndTime = original.GetEndTime()
EndTime = original.GetEndTime(),
Samples = original.Samples,
};

break;
Expand All @@ -151,7 +154,8 @@ protected override IEnumerable<RushHitObject> ConvertHitObject(HitObject origina
yield return new Heart
{
StartTime = original.StartTime,
Lane = lane
Lane = lane,
Samples = original.Samples,
};

break;
Expand Down

0 comments on commit 4a9d9f5

Please sign in to comment.