diff --git a/Patch/ClassPatch/scrPortalParticlesPatch.cs b/Patch/ClassPatch/scrPortalParticlesPatch.cs new file mode 100644 index 0000000..2e58f69 --- /dev/null +++ b/Patch/ClassPatch/scrPortalParticlesPatch.cs @@ -0,0 +1,27 @@ +using HarmonyLib; +using UnityEngine; + +namespace ADOFAIRenderer.Patch.ClassPatch +{ + [HarmonyPatch(typeof(scrPortalParticles))] + // ReSharper disable once InconsistentNaming + public static class scrPortalParticlesPatch + { + [HarmonyPostfix] + [HarmonyPatch("Start")] + // ReSharper disable once InconsistentNaming + public static void Postfix(scrPortalParticles __instance) + { + if (__instance == null) return; + + var particleSystems = __instance.GetComponentsInChildren(true); + foreach (var ps in particleSystems) + { + if (ps == null) continue; + + var main = ps.main; + main.useUnscaledTime = false; + } + } + } +}