Skip to content

Commit

Permalink
Remove vibration intensity from game adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sauceke committed Jun 19, 2024
1 parent fe066c3 commit 2e17a3d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/LoveMachine.Core/Controller/VibratorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected override IEnumerator HandleAnimation(Device device, StrokeInfo strokeI
float intensity = Mathf.Lerp(
device.Settings.VibratorSettings.IntensityMin,
device.Settings.VibratorSettings.IntensityMax,
t: strength * Game.VibrationIntensity);
t: strength);
Client.VibrateCmd(device, intensity);
yield return WaitForSecondsUnscaled(1f / device.Settings.UpdatesHz);
}
Expand Down
7 changes: 0 additions & 7 deletions src/LoveMachine.Core/Game/GameAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ public abstract class GameAdapter : CoroutineHandler
/// </summary>
protected internal virtual float MinStrokeLength => 0.5f;

/// <summary>
/// Override this to control the maximum vibration intensity. <br/>
/// Value must be between 0 (=no vibration) and 1 (=full intensity).
/// </summary>
[HideFromIl2Cpp]
protected internal virtual float VibrationIntensity => 1f;

/// <summary>
/// Override this to control the speed of down-strokes. <br/>
/// Value must be between 0 (=normal speed) and 1 (=2x speed).
Expand Down
2 changes: 0 additions & 2 deletions src/LoveMachine.KK/KoikatsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ internal sealed class KoikatsuGame : AbstractKoikatsuGame

protected override float PenisSize => 0.1f;

protected override float VibrationIntensity => Flags.speedCalc == 0f ? 1f : Flags.speedCalc;

protected override MethodInfo[] StartHMethods =>
new[] { AccessTools.Method(typeof(HFlag), nameof(HFlag.Start)) };

Expand Down

0 comments on commit 2e17a3d

Please sign in to comment.