Unlock cursor crashing the game fixed

This commit is contained in:
ALittlePatate
2022-05-08 18:43:21 +02:00
parent 06c6b1e334
commit a7e3ee435e
3 changed files with 29 additions and 20 deletions

View File

@@ -18,6 +18,23 @@ namespace DevourClient.Hooks
}
}
*/
/*
[HarmonyPatch(typeof(RankHelpers))]
[HarmonyPatch(nameof(RankHelpers.CalculateExpGain))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.
static class RankHelpers_CalculateExpGain
{
static void Postfix(ref RankHelpers.ExpGainInfo __result)
{
__result.baseExp = 200;
__result.winBonus = 200;
__result.awardsBonus = 200;
__result.totalExp = 200;
__result.gameModeBonus = 200;
MelonLoader.MelonLogger.Msg("called");
return;
}
}
*/
[HarmonyPatch(typeof(Horror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.