mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Revert "Reorganize"
This reverts commit 27f4222702e2e75e0c782b3f8162f3a38eddcb64.
This commit is contained in:
parent
27f4222702
commit
c114e75297
26
NewHorizons/Patches/BrambleProjectionFixPatches.cs
Normal file
26
NewHorizons/Patches/BrambleProjectionFixPatches.cs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace NewHorizons.Patches;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bug fix from the Outsider
|
||||||
|
/// </summary>
|
||||||
|
[HarmonyPatch]
|
||||||
|
internal class BrambleProjectionFixPatches
|
||||||
|
{
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(FogWarpVolume), nameof(FogWarpVolume.WarpDetector))]
|
||||||
|
public static bool FogWarpVolume_WarpDetector()
|
||||||
|
{
|
||||||
|
// Do not warp the player if they have entered the fog via a projection
|
||||||
|
return !PlayerState.UsingNomaiRemoteCamera();
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(FogWarpDetector), nameof(FogWarpDetector.FixedUpdate))]
|
||||||
|
public static bool FogWarpDetector_FixedUpdate()
|
||||||
|
{
|
||||||
|
// Do not warp the player if they have entered the fog via a projection
|
||||||
|
return !PlayerState.UsingNomaiRemoteCamera();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -42,29 +42,5 @@ namespace NewHorizons.Patches.VolumePatches
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Bug fix from the Outsider
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HarmonyPrefix]
|
|
||||||
[HarmonyPatch(typeof(FogWarpVolume), nameof(FogWarpVolume.WarpDetector))]
|
|
||||||
public static bool FogWarpVolume_WarpDetector()
|
|
||||||
{
|
|
||||||
// Do not warp the player if they have entered the fog via a projection
|
|
||||||
return !PlayerState.UsingNomaiRemoteCamera();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Bug fix from the Outsider
|
|
||||||
/// </summary>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HarmonyPrefix]
|
|
||||||
[HarmonyPatch(typeof(FogWarpDetector), nameof(FogWarpDetector.FixedUpdate))]
|
|
||||||
public static bool FogWarpDetector_FixedUpdate()
|
|
||||||
{
|
|
||||||
// Do not warp the player if they have entered the fog via a projection
|
|
||||||
return !PlayerState.UsingNomaiRemoteCamera();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user