mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
BH related patches folder + fix TOQK proxy appearing
This commit is contained in:
parent
2a87997c3b
commit
a188e58c7b
@ -0,0 +1,19 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace NewHorizons.Patches.BrittleHollowPatches;
|
||||||
|
|
||||||
|
[HarmonyPatch(typeof(TimedFragmentIntegrity))]
|
||||||
|
internal class TimedFragmentIntegrityPatches
|
||||||
|
{
|
||||||
|
// For some inexplicable reason Mobius decided to implement some weird custom loop using delayed method invoking
|
||||||
|
// This starts on Awake and isn't stopped by the object being set inactive
|
||||||
|
// Mobius why
|
||||||
|
// We just need to have this method not run if the object is inactive, to prevent the fragment being detached and activating its own proxy body
|
||||||
|
// While the fragment itself never appears, the proxy does
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(nameof(TimedFragmentIntegrity.OnLatestTimeReached))]
|
||||||
|
public static bool TimedFragmentIntegrity_OnLatestTimeReached(TimedFragmentIntegrity __instance)
|
||||||
|
{
|
||||||
|
return __instance.gameObject.activeInHierarchy;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user