cleanup
This commit is contained in:
parent
6fe683b4a9
commit
141505749f
|
@ -15,7 +15,8 @@ internal class UpdateBeatPatch {
|
||||||
$"Quarter beat, multiplier: {controller.GetCurrentTierIndex()}/{controller.GetNumTiers()-1} ({1 << controller.GetCurrentTierIndex()}x)"
|
$"Quarter beat, multiplier: {controller.GetCurrentTierIndex()}/{controller.GetNumTiers()-1} ({1 << controller.GetCurrentTierIndex()}x)"
|
||||||
);
|
);
|
||||||
|
|
||||||
ButtplugManager.Vibrate((float)controller.GetCurrentTierIndex() / ((float)controller.GetNumTiers() - 1), 100);
|
var scoreMultiplier = (float)controller.GetCurrentTierIndex() / ((float)controller.GetNumTiers() - 1);
|
||||||
|
ButtplugManager.Vibrate(scoreMultiplier, 100);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using BepInEx;
|
using System.Reflection;
|
||||||
|
using BepInEx;
|
||||||
using BepInEx.Logging;
|
using BepInEx.Logging;
|
||||||
using BepInEx.Unity.IL2CPP;
|
using BepInEx.Unity.IL2CPP;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
@ -8,14 +9,13 @@ namespace MetalButtplug;
|
||||||
|
|
||||||
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
|
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
|
||||||
public class Plugin : BasePlugin {
|
public class Plugin : BasePlugin {
|
||||||
Harmony harmony = new Harmony(MyPluginInfo.PLUGIN_GUID);
|
|
||||||
internal static new ManualLogSource Log;
|
internal static new ManualLogSource Log;
|
||||||
public override void Load() {
|
public override void Load() {
|
||||||
Plugin.Log = base.Log;
|
Plugin.Log = base.Log;
|
||||||
|
|
||||||
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
|
Log.LogInfo($"Plugin {MyPluginInfo.PLUGIN_GUID} is loaded!");
|
||||||
|
|
||||||
harmony.PatchAll(typeof(Patches.UpdateBeatPatch));
|
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly());
|
||||||
Log.LogInfo("Applied patches");
|
Log.LogInfo("Applied patches");
|
||||||
|
|
||||||
ButtplugManager.Init();
|
ButtplugManager.Init();
|
||||||
|
|
Loading…
Reference in a new issue