From 7bfe3d2fd1b099be2f5fcfce6369f9630a233265 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 12 Mar 2024 13:26:22 -0400 Subject: [PATCH] Remove unused volume --- NewHorizons/Components/Volumes/NHInnerFogWarpVolume.cs | 8 -------- NewHorizons/Patches/VolumePatches/FogWarpVolumePatches.cs | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 NewHorizons/Components/Volumes/NHInnerFogWarpVolume.cs diff --git a/NewHorizons/Components/Volumes/NHInnerFogWarpVolume.cs b/NewHorizons/Components/Volumes/NHInnerFogWarpVolume.cs deleted file mode 100644 index 70d74979..00000000 --- a/NewHorizons/Components/Volumes/NHInnerFogWarpVolume.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace NewHorizons.Components.Volumes -{ - public class NHInnerFogWarpVolume : InnerFogWarpVolume - { - public override bool IsProbeOnly() => _exitRadius <= 6; - public override float GetFogThickness() => _exitRadius; - } -} diff --git a/NewHorizons/Patches/VolumePatches/FogWarpVolumePatches.cs b/NewHorizons/Patches/VolumePatches/FogWarpVolumePatches.cs index 8deb368b..a4999837 100644 --- a/NewHorizons/Patches/VolumePatches/FogWarpVolumePatches.cs +++ b/NewHorizons/Patches/VolumePatches/FogWarpVolumePatches.cs @@ -17,7 +17,8 @@ namespace NewHorizons.Patches.VolumePatches return true; } - __result = Mathf.Approximately(__instance._exitRadius / __instance._warpRadius, 2f); // Check the ratio between these to determine if seed, instead of just < 10 + // Check the ratio between these to determine if seed, instead of just < 10 + __result = Mathf.Approximately(__instance._exitRadius / __instance._warpRadius, 2f); return false; }