mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09:00
Make the easy mod's extra life count customizable
This commit is contained in:
parent
e968426341
commit
e3753ae29f
@ -5,6 +5,7 @@ using System;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Rulesets.Scoring;
|
using osu.Game.Rulesets.Scoring;
|
||||||
using osu.Game.Scoring;
|
using osu.Game.Scoring;
|
||||||
@ -21,7 +22,14 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
public override bool Ranked => true;
|
public override bool Ranked => true;
|
||||||
public override Type[] IncompatibleMods => new[] { typeof(ModHardRock) };
|
public override Type[] IncompatibleMods => new[] { typeof(ModHardRock) };
|
||||||
|
|
||||||
private int retries = 2;
|
[SettingSource("Extra Lives", "Number of extra lives")]
|
||||||
|
public Bindable<int> Retries { get; } = new BindableInt(2)
|
||||||
|
{
|
||||||
|
MinValue = 0,
|
||||||
|
MaxValue = 10
|
||||||
|
};
|
||||||
|
|
||||||
|
private int retries;
|
||||||
|
|
||||||
private BindableNumber<double> health;
|
private BindableNumber<double> health;
|
||||||
|
|
||||||
@ -32,6 +40,8 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
difficulty.ApproachRate *= ratio;
|
difficulty.ApproachRate *= ratio;
|
||||||
difficulty.DrainRate *= ratio;
|
difficulty.DrainRate *= ratio;
|
||||||
difficulty.OverallDifficulty *= ratio;
|
difficulty.OverallDifficulty *= ratio;
|
||||||
|
|
||||||
|
retries = Retries.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AllowFail
|
public bool AllowFail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user