20 lines
704 B
C#
20 lines
704 B
C#
|
using HarmonyLib;
|
||
|
|
||
|
namespace MetalButtplug.Patches;
|
||
|
|
||
|
[HarmonyPatch(typeof(BeatSequencer), nameof(BeatSequencer.UpdateBeat))]
|
||
|
internal class UpdateBeatPatch {
|
||
|
private static void Prefix(BeatStatusProvider beatStatus) {
|
||
|
if (beatStatus.BeatFlags.HasFlag(BeatFlags.Quarter)) {
|
||
|
var playerController = UnityEngine.Object.FindObjectOfType<FirstPersonController>();
|
||
|
var player = playerController.m_player;
|
||
|
var controller = player.ScoreController;
|
||
|
|
||
|
Plugin.Log.LogInfo(
|
||
|
$"Quarter beat, multiplier: {controller.GetCurrentTierIndex()}/{controller.GetNumTiers()} ({1 << controller.GetCurrentTierIndex()}x)"
|
||
|
);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|