mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix cloak
This commit is contained in:
parent
9d93981350
commit
ab237624b2
@ -1,10 +1,8 @@
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace NewHorizons.Patches
|
namespace NewHorizons.Patches
|
||||||
{
|
{
|
||||||
|
[HarmonyPatch]
|
||||||
public static class CloakPatches
|
public static class CloakPatches
|
||||||
{
|
{
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
@ -16,21 +14,21 @@ namespace NewHorizons.Patches
|
|||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isPlayerInsideCloak), MethodType.Getter)]
|
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isPlayerInsideCloak), MethodType.Getter)]
|
||||||
public static void CloakFieldController_isPlayerInsideCloak(CloakFieldController __instance, ref bool __result)
|
public static void CloakFieldController_isPlayerInsideCloak(ref bool __result)
|
||||||
{
|
{
|
||||||
__result = __result || Components.CloakSectorController.isPlayerInside;
|
__result = __result || Components.CloakSectorController.isPlayerInside;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isProbeInsideCloak), MethodType.Getter)]
|
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isProbeInsideCloak), MethodType.Getter)]
|
||||||
public static void CloakFieldController_isProbeInsideCloak(CloakFieldController __instance, ref bool __result)
|
public static void CloakFieldController_isProbeInsideCloak(ref bool __result)
|
||||||
{
|
{
|
||||||
__result = __result || Components.CloakSectorController.isProbeInside;
|
__result = __result || Components.CloakSectorController.isProbeInside;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isShipInsideCloak), MethodType.Getter)]
|
[HarmonyPatch(typeof(CloakFieldController), nameof(CloakFieldController.isShipInsideCloak), MethodType.Getter)]
|
||||||
public static void CloakFieldController_isShipInsideCloak(CloakFieldController __instance, ref bool __result)
|
public static void CloakFieldController_isShipInsideCloak(ref bool __result)
|
||||||
{
|
{
|
||||||
__result = __result || Components.CloakSectorController.isShipInside;
|
__result = __result || Components.CloakSectorController.isShipInside;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user