forked from nikita/muzika-gromche
Harmony: Use nameof() instead of hardcoded strings
This commit is contained in:
parent
0fbf0b04f4
commit
2a33457661
|
@ -1740,14 +1740,14 @@ namespace MuzikaGromche
|
|||
internal class JesterPatch
|
||||
{
|
||||
#if DEBUG
|
||||
[HarmonyPatch("SetJesterInitialValues")]
|
||||
[HarmonyPatch(nameof(JesterAI.SetJesterInitialValues))]
|
||||
[HarmonyPostfix]
|
||||
public static void AlmostInstantFollowTimerPostfix(JesterAI __instance)
|
||||
{
|
||||
__instance.beginCrankingTimer = 1f;
|
||||
}
|
||||
#endif
|
||||
[HarmonyPatch("Update")]
|
||||
[HarmonyPatch(nameof(JesterAI.Update))]
|
||||
[HarmonyPrefix]
|
||||
public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state)
|
||||
{
|
||||
|
@ -1769,7 +1769,7 @@ namespace MuzikaGromche
|
|||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch("Update")]
|
||||
[HarmonyPatch(nameof(JesterAI.Update))]
|
||||
[HarmonyPostfix]
|
||||
public static void DoNotStopTheMusic(JesterAI __instance, State __state)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue