Skip to content

Commit

Permalink
Merge pull request #435 from LumpBloom7/dependabot/nuget/ppy.osu.Game…
Browse files Browse the repository at this point in the history
…-2023.207.0

Bump ppy.osu.Game from 2022.1227.0 to 2023.207.0
  • Loading branch information
LumpBloom7 authored Feb 8, 2023
2 parents 36bfd52 + c18c601 commit d8047c8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using osu.Game.Rulesets.Mods;

namespace osu.Game.Rulesets.Sentakki.Mods
{
public class SentakkiModAccuracyChallenge : ModAccuracyChallenge
{
}
}
12 changes: 3 additions & 9 deletions osu.Game.Rulesets.Sentakki/Mods/SentakkiModChallenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace osu.Game.Rulesets.Sentakki.Mods
{
public class SentakkiModChallenge : Mod, IApplicableToDrawableRuleset<SentakkiHitObject>, IApplicableToHealthProcessor
public class SentakkiModChallenge : ModFailCondition, IApplicableToDrawableRuleset<SentakkiHitObject>, IApplicableToHealthProcessor
{
public override string Name => "Challenge";
public override LocalisableString Description => SentakkiModChallengeStrings.ModDescription;
Expand All @@ -33,8 +33,7 @@ public class SentakkiModChallenge : Mod, IApplicableToDrawableRuleset<SentakkiHi
public override Type[] IncompatibleMods => new[]
{
typeof(ModRelax),
typeof(ModSuddenDeath),
typeof(ModPerfect),
typeof(ModFailCondition),
typeof(ModAutoplay),
typeof(ModNoFail),
};
Expand Down Expand Up @@ -85,12 +84,7 @@ public void ApplyToDrawableRuleset(DrawableRuleset<SentakkiHitObject> drawableRu
((SentakkiPlayfield)drawableRuleset.Playfield).AccentContainer.Add(new LiveCounter(LivesLeft));
}

public void ApplyToHealthProcessor(HealthProcessor healthProcessor)
{
healthProcessor.FailConditions += FailCondition;
}

protected bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
protected override bool FailCondition(HealthProcessor healthProcessor, JudgementResult result)
{
if (result.Judgement is not SentakkiJudgement || result.HitObject is ScorePaddingObject)
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected override void ClearNestedHitObjects()
protected override void OnFree()
{
base.OnFree();
breakSample.Samples = null;
breakSample.Samples = null!;
}

protected override void ApplyResult(Action<JudgementResult> application)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected override void OnFree()
{
base.OnFree();

holdSample.Samples = null;
holdSample.Samples = null!;
holdStartTime = null;
totalHoldTime = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Sentakki/SentakkiRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public override IEnumerable<Mod> GetModsFor(ModType type)
{
new SentakkiModHardRock(),
new MultiMod(new SentakkiModSuddenDeath(), new SentakkiModPerfect()),
new SentakkiModChallenge(),
new MultiMod(new SentakkiModChallenge(), new SentakkiModAccuracyChallenge()),
new MultiMod(new SentakkiModDoubleTime(), new SentakkiModNightcore()),
new SentakkiModHidden(),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AssemblyName>osu.Game.Rulesets.Sentakki</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2022.1227.0"/>
<PackageReference Include="ppy.osu.Game" Version="2023.207.0"/>
</ItemGroup>

<!--Since we aren't changing the assembly name, we use the assembly title to indicate whether it is a dev build-->
Expand Down

0 comments on commit d8047c8

Please sign in to comment.