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
|
internal class JesterPatch
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
[HarmonyPatch("SetJesterInitialValues")]
|
[HarmonyPatch(nameof(JesterAI.SetJesterInitialValues))]
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
public static void AlmostInstantFollowTimerPostfix(JesterAI __instance)
|
public static void AlmostInstantFollowTimerPostfix(JesterAI __instance)
|
||||||
{
|
{
|
||||||
__instance.beginCrankingTimer = 1f;
|
__instance.beginCrankingTimer = 1f;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
[HarmonyPatch("Update")]
|
[HarmonyPatch(nameof(JesterAI.Update))]
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state)
|
public static void DoNotStopTheMusicPrefix(JesterAI __instance, out State __state)
|
||||||
{
|
{
|
||||||
|
@ -1769,7 +1769,7 @@ namespace MuzikaGromche
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPatch("Update")]
|
[HarmonyPatch(nameof(JesterAI.Update))]
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
public static void DoNotStopTheMusic(JesterAI __instance, State __state)
|
public static void DoNotStopTheMusic(JesterAI __instance, State __state)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue