Skip to content

Commit fd00546

Browse files
committed
fix: change approach rate conversion
1 parent 0e0b51e commit fd00546

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/database/settings/SettingsProfile.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ double importVolume(string nightlyKey, double range)
12311231
nightlyProfile.AbsoluteSensitivity.Value = getSetting<double>("absolute_scale") ?? nightlyProfile.AbsoluteSensitivity.Value;
12321232
nightlyProfile.AbsoluteInput.Value = getSetting<bool>("absolute_mode") ?? nightlyProfile.AbsoluteInput.Value;
12331233
nightlyProfile.CursorDrift.Value = getSetting<bool>("enable_drift_cursor") ?? nightlyProfile.CursorDrift.Value;
1234-
nightlyProfile.ApproachRate.Value = getSetting<double>("approach_rate") ?? nightlyProfile.ApproachRate.Value;
1234+
nightlyProfile.ApproachRate.Value = getSetting<double>("spawn_distance") / (Math.Max(getSetting<double>("spawn_distance") / getSetting<double>("approach_rate") ?? 0, 0.6) + 0.5) ?? nightlyProfile.ApproachRate.Value;
12351235
nightlyProfile.ApproachDistance.Value = getSetting<double>("spawn_distance") ?? nightlyProfile.ApproachDistance.Value;
12361236
nightlyProfile.Pushback.Value = getSetting<bool>("do_note_pushback") ?? nightlyProfile.Pushback.Value;
12371237
nightlyProfile.CameraParallax.Value = getSetting<double>("parallax") * 0.025 ?? nightlyProfile.CameraParallax.Value;
@@ -1252,7 +1252,7 @@ double importVolume(string nightlyKey, double range)
12521252
nightlyProfile.Fullscreen.Value = getSetting<bool>("window_fullscreen") ?? nightlyProfile.Fullscreen.Value;
12531253
nightlyProfile.FPS.Value = getSetting<int>("target_fps") ?? nightlyProfile.FPS.Value;
12541254
nightlyProfile.VolumeMaster.Value = 100;
1255-
nightlyProfile.VolumeMusic.Value = importVolume("music_volume", 70); ;
1255+
nightlyProfile.VolumeMusic.Value = importVolume("music_volume", 70);
12561256
nightlyProfile.VolumeHitSound.Value = importVolume("hit_volume", 80);
12571257
nightlyProfile.VolumeMissSound.Value = importVolume("miss_volume", 80);
12581258
nightlyProfile.VolumeSFX.Value = importVolume("fail_volume", 80);

0 commit comments

Comments
 (0)