Added an exp modifier, exp persists !
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user