Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions RogueTechPerfFixes/Patches/H_EffectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public static bool Prepare()
return Mod.Settings.Patch.Vanilla;
}

// HarmonyX: Priority: Set to Last after CustomStatisticsEffects
[HarmonyPriority(Priority.Last)]
public static void Postfix(Effect effect)
{
if (!_cache.TryGetValue(effect.Target, out var effects))
Expand All @@ -37,6 +39,8 @@ public static bool Prepare()
return Mod.Settings.Patch.Vanilla;
}

// HarmonyX: Priority: Set to Last after CustomStatisticsEffects
[HarmonyPriority(Priority.Last)]
public static void Postfix(Effect e)
{
if (_cache.TryGetValue(e.Target, out var effects))
Expand All @@ -54,6 +58,8 @@ public static bool Prepare()
return Mod.Settings.Patch.Vanilla;
}

// HarmonyX: Priority: Set to Last after CustomStatisticsEffects
[HarmonyPriority(Priority.Last)]
public static void Postfix(Effect e)
{
if (_cache.TryGetValue(e.Target, out var effects))
Expand Down Expand Up @@ -119,6 +125,9 @@ public static bool Prepare()
return Mod.Settings.Patch.Vanilla;
}


// HarmonyX: Priority: Set to Last after CustomStatisticsEffects
[HarmonyPriority(Priority.Last)]
public static void Postfix(List<Effect> ___effects)
{
_cache.Clear();
Expand Down