Decompiled source of LCTutorialMod v1.1.0

LCTutorialMod.dll

Decompiled 10 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LCTutorialMod.Patches;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("LCTutorialMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LCTutorialMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8f1958bc-2adb-482b-b147-15090377ed2f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LCTutorialMod
{
	[BepInPlugin("Epoch.LCTutorialMod", "LC Tutorial Mod", "1.0.0.0")]
	public class TutorialModBase : BaseUnityPlugin
	{
		private const string modGUID = "Epoch.LCTutorialMod";

		private const string modName = "LC Tutorial Mod";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("Epoch.LCTutorialMod");

		private static TutorialModBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("Epoch.LCTutorialMod");
			mls.LogInfo((object)"Hello. How's your day?");
			harmony.PatchAll(typeof(TutorialModBase));
			harmony.PatchAll(typeof(GhostGirlBPatch));
			harmony.PatchAll(typeof(GhostGirlAPatch));
		}
	}
}
namespace LCTutorialMod.Patches
{
	[HarmonyPatch(typeof(DressGirlAI))]
	internal class GhostGirlAPatch
	{
		[HarmonyPatch("SetDestinationToPosition")]
		[HarmonyPostfix]
		private static void ghostGirlPatch(ref bool ___movingTowardsDestination)
		{
			___movingTowardsDestination = false;
		}
	}
	[HarmonyPatch(typeof(DressGirlAI))]
	internal class GhostGirlBPatch
	{
		[HarmonyPatch("Update")]
		[HarmonyPostfix]
		private static void ghostGirlPatch(ref bool ___switchedHauntingPlayer, ref bool ___hauntingLocalPlayer, ref bool ___isEnemyDead, ref bool ___enemyMeshEnabled, ref float ___timer, ref bool ___choseDisappearingPosition)
		{
			___switchedHauntingPlayer = false;
			___hauntingLocalPlayer = false;
			___isEnemyDead = false;
			___enemyMeshEnabled = false;
			___timer = 0f;
			___choseDisappearingPosition = false;
		}
	}
}