mirror of
https://github.com/ppy/osu.git
synced 2025-03-13 18:57:22 +08:00
Rename appliedSize
to appliedFlashlightSize
This commit is contained in:
parent
93ad5561b1
commit
b4ed7fb989
@ -126,7 +126,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
public List<BreakPeriod> Breaks = new List<BreakPeriod>();
|
public List<BreakPeriod> Breaks = new List<BreakPeriod>();
|
||||||
|
|
||||||
private readonly float appliedSize;
|
private readonly float appliedFlashlightSize;
|
||||||
private readonly float changeSizeDecreaseRatio;
|
private readonly float changeSizeDecreaseRatio;
|
||||||
private readonly bool comboBasedSize;
|
private readonly bool comboBasedSize;
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
changeSizeCombo = modFlashlight.ChangeSizeCombo.Value;
|
changeSizeCombo = modFlashlight.ChangeSizeCombo.Value;
|
||||||
maxChangeSizeTimes = modFlashlight.MaxChangeSizeTimes.Value;
|
maxChangeSizeTimes = modFlashlight.MaxChangeSizeTimes.Value;
|
||||||
|
|
||||||
appliedSize = modFlashlight.DefaultFlashlightSize * modFlashlight.SizeMultiplier.Value;
|
appliedFlashlightSize = modFlashlight.DefaultFlashlightSize * modFlashlight.SizeMultiplier.Value;
|
||||||
|
|
||||||
var finalFlashlightSizeBinding = modFlashlight.FinalFlashlightSize;
|
var finalFlashlightSizeBinding = modFlashlight.FinalFlashlightSize;
|
||||||
float finalFlashlightSize = finalFlashlightSizeBinding.Value;
|
float finalFlashlightSize = finalFlashlightSizeBinding.Value;
|
||||||
@ -182,11 +182,11 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
|
|
||||||
protected float GetSizeFor(int combo)
|
protected float GetSizeFor(int combo)
|
||||||
{
|
{
|
||||||
if (!comboBasedSize) return appliedSize;
|
if (!comboBasedSize) return appliedFlashlightSize;
|
||||||
|
|
||||||
float changeSizeComboReachedTimesLimited = MathF.Min(maxChangeSizeTimes, MathF.Floor(combo / changeSizeCombo));
|
float changeSizeComboReachedTimesLimited = MathF.Min(maxChangeSizeTimes, MathF.Floor(combo / changeSizeCombo));
|
||||||
|
|
||||||
return appliedSize * (1 - changeSizeComboReachedTimesLimited * changeSizeDecreaseRatio);
|
return appliedFlashlightSize * (1 - changeSizeComboReachedTimesLimited * changeSizeDecreaseRatio);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Vector2 flashlightPosition;
|
private Vector2 flashlightPosition;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user