Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Nov 15, 2024
1 parent 5df610a commit fe68e86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public SentakkiBeatmapConverter(IBeatmap beatmap, Ruleset ruleset) : base(beatma
this.beatmap = beatmap;

// Taking this from osu specific information that we need
circleRadius = 54.4f - 4.48f * beatmap.Difficulty.CircleSize;
circleRadius = 54.4f - (4.48f * beatmap.Difficulty.CircleSize);

// Prep an RNG with a seed generated from beatmap diff
var difficulty = beatmap.BeatmapInfo.Difficulty;
Expand Down Expand Up @@ -98,7 +98,7 @@ protected override IEnumerable<SentakkiHitObject> ConvertHitObject(HitObject ori
{
var slidePath = slide.SlideInfoList[0].SlidePath;
if (slidePath.EndsWithSlideFan)
fanStartTime = slide.StartTime + slide.Duration * slidePath.FanStartProgress;
fanStartTime = slide.StartTime + (slide.Duration * slidePath.FanStartProgress);
}

if (allClaps && fanStartTime == double.MaxValue)
Expand All @@ -117,7 +117,7 @@ protected override IEnumerable<SentakkiHitObject> ConvertHitObject(HitObject ori
if (samples.All(h => h.Name != HitSampleInfo.HIT_CLAP))
continue;

double targetTime = original.StartTime + spansDuration * i;
double targetTime = original.StartTime + (spansDuration * i);

if (targetTime >= fanStartTime)
break;
Expand All @@ -133,7 +133,7 @@ protected override IEnumerable<SentakkiHitObject> ConvertHitObject(HitObject ori
sho.Ex = isSoft;

yield return sho;
};
}
}

break;
Expand Down
2 changes: 0 additions & 2 deletions osu.Game.Rulesets.Sentakki/Beatmaps/Converter/TwinPattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,4 @@ public int getNextLane(int currentLane)

return result.NormalizePath();
}


}

0 comments on commit fe68e86

Please sign in to comment.