mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
fix map patches + cleanup
This commit is contained in:
parent
8d4cb9689e
commit
53433445e3
@ -1,18 +1,16 @@
|
|||||||
using QSB.Patches;
|
using HarmonyLib;
|
||||||
|
using QSB.Patches;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace QSB.DeathSync.Patches
|
namespace QSB.DeathSync.Patches
|
||||||
{
|
{
|
||||||
|
[HarmonyPatch]
|
||||||
internal class MapPatches : QSBPatch
|
internal class MapPatches : QSBPatch
|
||||||
{
|
{
|
||||||
public override QSBPatchTypes Type => QSBPatchTypes.RespawnTime;
|
public override QSBPatchTypes Type => QSBPatchTypes.RespawnTime;
|
||||||
|
|
||||||
//public override void DoPatches()
|
[HarmonyPrefix]
|
||||||
//{
|
[HarmonyPatch(typeof(MapController), nameof(MapController.EnterMapView))]
|
||||||
// Prefix<MapController>(nameof(MapController.LateUpdate), nameof(MapController_LateUpdate));
|
|
||||||
// Prefix<MapController>(nameof(MapController.EnterMapView), nameof(MapController_EnterMapView));
|
|
||||||
//}
|
|
||||||
|
|
||||||
public static bool MapController_EnterMapView(
|
public static bool MapController_EnterMapView(
|
||||||
MapController __instance,
|
MapController __instance,
|
||||||
ref bool ____isMapMode,
|
ref bool ____isMapMode,
|
||||||
@ -95,6 +93,8 @@ namespace QSB.DeathSync.Patches
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(MapController), nameof(MapController.LateUpdate))]
|
||||||
public static bool MapController_LateUpdate(
|
public static bool MapController_LateUpdate(
|
||||||
MapController __instance,
|
MapController __instance,
|
||||||
ref float ____observatoryRevealTwist,
|
ref float ____observatoryRevealTwist,
|
||||||
|
@ -9,12 +9,6 @@ namespace QSB.DeathSync.Patches
|
|||||||
{
|
{
|
||||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||||
|
|
||||||
//public override void DoPatches()
|
|
||||||
//{
|
|
||||||
// Prefix<PlayerRecoveryPoint>(nameof(PlayerRecoveryPoint.OnGainFocus), nameof(PlayerRecoveryPoint_OnGainFocus));
|
|
||||||
// Prefix<PlayerRecoveryPoint>(nameof(PlayerRecoveryPoint.OnPressInteract), nameof(PlayerRecoveryPoint_OnPressInteract));
|
|
||||||
//}
|
|
||||||
|
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(PlayerRecoveryPoint), nameof(PlayerRecoveryPoint.OnGainFocus))]
|
[HarmonyPatch(typeof(PlayerRecoveryPoint), nameof(PlayerRecoveryPoint.OnGainFocus))]
|
||||||
public static bool PlayerRecoveryPoint_OnGainFocus(
|
public static bool PlayerRecoveryPoint_OnGainFocus(
|
||||||
|
@ -10,15 +10,6 @@ namespace QSB.RoastingSync.Patches
|
|||||||
{
|
{
|
||||||
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
|
||||||
|
|
||||||
//public override void DoPatches()
|
|
||||||
//{
|
|
||||||
// Prefix<RoastingStickController>(nameof(RoastingStickController.UpdateMarshmallowInput), nameof(RoastingStickController_UpdateMarshmallowInput));
|
|
||||||
// Prefix<Marshmallow>(nameof(Marshmallow.Burn), nameof(Marshmallow_Burn));
|
|
||||||
// Prefix<Marshmallow>(nameof(Marshmallow.Shrivel), nameof(Marshmallow_Shrivel));
|
|
||||||
// Prefix<Marshmallow>(nameof(Marshmallow.RemoveMallow), nameof(Marshmallow_RemoveMallow));
|
|
||||||
// Prefix<Marshmallow>(nameof(Marshmallow.SpawnMallow), nameof(Marshmallow_SpawnMallow));
|
|
||||||
//}
|
|
||||||
|
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(Marshmallow), nameof(Marshmallow.SpawnMallow))]
|
[HarmonyPatch(typeof(Marshmallow), nameof(Marshmallow.SpawnMallow))]
|
||||||
public static bool Marshmallow_SpawnMallow()
|
public static bool Marshmallow_SpawnMallow()
|
||||||
|
Loading…
Reference in New Issue
Block a user