1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 19:17:20 +08:00

Removed old unnecessary change, updated license header and apply deflating onto first object regardless

This commit is contained in:
MaxOhnh 2019-07-01 14:46:17 +02:00
parent cd5e1bc4b1
commit 02b9e89f43
2 changed files with 4 additions and 13 deletions

View File

@ -1,5 +1,5 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
@ -14,7 +14,7 @@ using osu.Game.Rulesets.Osu.Objects.Drawables;
namespace osu.Game.Rulesets.Osu.Mods
{
public class OsuModDeflate : Mod, IReadFromConfig, IApplicableToDrawableHitObjects
public class OsuModDeflate : Mod, IApplicableToDrawableHitObjects
{
public override string Name => "Deflate";
@ -28,16 +28,9 @@ namespace osu.Game.Rulesets.Osu.Mods
public override double ScoreMultiplier => 1;
private Bindable<bool> increaseFirstObjectVisibility = new Bindable<bool>();
public void ReadFromConfig(OsuConfigManager config)
{
increaseFirstObjectVisibility = config.GetBindable<bool>(OsuSetting.IncreaseFirstObjectVisibility);
}
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
{
foreach (var drawable in drawables.Skip(increaseFirstObjectVisibility.Value ? 1 : 0))
foreach (var drawable in drawables)
{
switch (drawable)
{

View File

@ -41,8 +41,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
};
}
public bool IsFirstRepeat => repeatPoint.RepeatIndex == 0;
protected override void CheckForResult(bool userTriggered, double timeOffset)
{
if (repeatPoint.StartTime <= Time.Current)