Decompiled source of DetroitSimulator v1.0.0

BepInEx/plugins/EveryNPCIsAThief.dll

Decompiled 2 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 EveryNPCIsAThief.Patches;
using HarmonyLib;
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("EveryNPCIsAThief")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EveryNPCIsAThief")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3f85d265-2ce1-4545-9be4-1671aac83e12")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace EveryNPCIsAThief
{
	[BepInPlugin("MrChicken.EveryNPCIsAThief", "Every NPC Is A Thief", "1.0.0.0")]
	public class EveryNPCIsAThiefBase : BaseUnityPlugin
	{
		private const string modGUID = "MrChicken.EveryNPCIsAThief";

		private const string modName = "Every NPC Is A Thief";

		private const string modVersion = "1.0.0.0";

		private readonly Harmony harmony = new Harmony("MrChicken.EveryNPCIsAThief");

		private static EveryNPCIsAThiefBase Instance;

		internal ManualLogSource mls;

		private void Awake()
		{
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			mls = Logger.CreateLogSource("MrChicken.EveryNPCIsAThief");
			mls.LogInfo((object)"EveryNPCIsAThief has awoken");
			harmony.PatchAll(typeof(EveryNPCIsAThiefBase));
			harmony.PatchAll(typeof(NPC_InfoPatch));
		}
	}
}
namespace EveryNPCIsAThief.Patches
{
	[HarmonyPatch(typeof(NPC_Info))]
	public class NPC_InfoPatch
	{
		[HarmonyPatch("CreateNPCCharacter")]
		[HarmonyPostfix]
		private static void makeNPCsThieves(ref bool ___isAThief)
		{
			___isAThief = true;
		}
	}
}