mirror of
https://github.com/osukey/osukey.git
synced 2025-07-30 06:35:27 +09:00
Removes overhead when not combo based size
This commit is contained in:
@ -148,12 +148,11 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
protected float GetSizeFor(int combo)
|
protected float GetSizeFor(int combo)
|
||||||
{
|
{
|
||||||
float size = defaultFlashlightSize * sizeMultiplier;
|
float size = defaultFlashlightSize * sizeMultiplier;
|
||||||
int comboForSize = Math.Min(combo, flashlight_size_decrease_combo_max);
|
|
||||||
|
|
||||||
if (!comboBasedSize)
|
if (comboBasedSize)
|
||||||
comboForSize = 0;
|
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;
|
private Vector2 flashlightPosition;
|
||||||
|
Reference in New Issue
Block a user