Added an exp modifier, exp persists !

This commit is contained in:
ALittlePatate
2022-05-08 19:30:09 +02:00
parent a7e3ee435e
commit e9efd3af9c
3 changed files with 12 additions and 9 deletions

View File

@@ -18,23 +18,21 @@ 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");
if (Load.exp_modifier)
{
__result.totalExp = (int)Load.exp;
}
return;
}
}
*/
[HarmonyPatch(typeof(Horror.Menu))]
[HarmonyPatch(nameof(Horror.Menu.SetupPerk))] //annotation boiler plate to tell Harmony what to patch. Refer to docs.