Apply Stage-based Condition Management

This commit is contained in:
copecone committed 2026-09-28 21:15:02 +09:00
1 parent 363130e87b
commit d42c434780
7 files changed
+28 -45

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ public static class scnGamePatch
[HarmonyPatch("Play")]
public static void ProcessFloors()
{
var nonTile = RenderManager.Instance.OverrideLoading &&
var nonTile = RenderManager.Instance.stage >= RenderStage.Load &&
RenderManager.Instance.Configuration.AdvancedConfig.NonTile;
if (!nonTile) return;
+1 -1
View File
@@ -14,7 +14,7 @@ public class scrFloorPatch
{
if (!scrLevelMaker.instance.listFloors.Contains(__instance)) return true;
var nonTile = RenderManager.Instance.OverrideLoading &&
var nonTile = RenderManager.Instance.stage >= RenderStage.Load &&
RenderManager.Instance.Configuration.AdvancedConfig.NonTile;
return !nonTile;
}
+1 -1
View File
@@ -13,7 +13,7 @@ public static class scrPortalParticlesPatch
// ReSharper disable once InconsistentNaming
public static void ForceScaledTime(scrPortalParticles __instance)
{
if (!RenderManager.Instance || !RenderManager.Instance.OverrideLoading) return;
if (!RenderManager.Instance || RenderManager.Instance.stage < RenderStage.Load) return;
if (__instance == null) return;
var particleSystems = __instance.GetComponentsInChildren<ParticleSystem>(true);