mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Removes overhead when not combo based size
This commit is contained in:
parent
3b87ecf56c
commit
ac4229e3d4
@ -148,12 +148,11 @@ namespace osu.Game.Rulesets.Mods
|
||||
protected float GetSizeFor(int combo)
|
||||
{
|
||||
float size = defaultFlashlightSize * sizeMultiplier;
|
||||
int comboForSize = Math.Min(combo, flashlight_size_decrease_combo_max);
|
||||
|
||||
if (!comboBasedSize)
|
||||
comboForSize = 0;
|
||||
if (comboBasedSize)
|
||||
size *= 1 - flashlight_size_decrease_with_combo_multiplier * MathF.Floor(MathF.Min(combo, flashlight_size_decrease_combo_max) / flashlight_size_decrease_combo);
|
||||
|
||||
return size * (1 - flashlight_size_decrease_with_combo_multiplier * MathF.Floor(MathF.Min(comboForSize, flashlight_size_decrease_combo_max) / flashlight_size_decrease_combo));
|
||||
return size;
|
||||
}
|
||||
|
||||
private Vector2 flashlightPosition;
|
||||
|
Loading…
Reference in New Issue
Block a user