mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Rename variable to not include mode name itself
This commit is contained in:
parent
d09976bb39
commit
a5fac70c3b
@ -27,7 +27,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
private const int wiggle_duration = 100; // (ms) Higher = fewer wiggles
|
private const int wiggle_duration = 100; // (ms) Higher = fewer wiggles
|
||||||
|
|
||||||
[SettingSource("Strength", "Multiplier applied to the wiggling strength.")]
|
[SettingSource("Strength", "Multiplier applied to the wiggling strength.")]
|
||||||
public BindableDouble WiggleStrength { get; } = new BindableDouble(1)
|
public BindableDouble Strength { get; } = new BindableDouble(1)
|
||||||
{
|
{
|
||||||
MinValue = 0.1f,
|
MinValue = 0.1f,
|
||||||
MaxValue = 2f,
|
MaxValue = 2f,
|
||||||
@ -56,7 +56,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
void wiggle()
|
void wiggle()
|
||||||
{
|
{
|
||||||
float nextAngle = (float)(objRand.NextDouble() * 2 * Math.PI);
|
float nextAngle = (float)(objRand.NextDouble() * 2 * Math.PI);
|
||||||
float nextDist = (float)(objRand.NextDouble() * WiggleStrength.Value * 7);
|
float nextDist = (float)(objRand.NextDouble() * Strength.Value * 7);
|
||||||
drawable.MoveTo(new Vector2((float)(nextDist * Math.Cos(nextAngle) + origin.X), (float)(nextDist * Math.Sin(nextAngle) + origin.Y)), wiggle_duration);
|
drawable.MoveTo(new Vector2((float)(nextDist * Math.Cos(nextAngle) + origin.X), (float)(nextDist * Math.Sin(nextAngle) + origin.Y)), wiggle_duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user