mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
Fixed lives being not reseting between maps.
E.G. quitting a map with only 1 revive and getting 2 lives on another map.
This commit is contained in:
parent
28bf3156ba
commit
ff1815e714
@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
public abstract class ModEasy : Mod, IApplicableToDifficulty, IApplicableToScoreProcessor
|
||||
{
|
||||
public static int Lives = 2;
|
||||
public static int Lives;
|
||||
public override string Name => "Easy";
|
||||
public override string Acronym => "EZ";
|
||||
public override IconUsage Icon => OsuIcon.ModEasy;
|
||||
@ -31,6 +31,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
|
||||
public void ApplyToScoreProcessor(ScoreProcessor scoreProcessor)
|
||||
{
|
||||
Lives = 2;
|
||||
scoreProcessor.Health.ValueChanged += valueChanged =>
|
||||
{
|
||||
if (scoreProcessor.Health.Value == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user