Decompiled source of RestlessKelvin v1.0.0

BepInEx/plugins/RestlessKelvin.dll

Decompiled 8 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
using Il2CppSystem;
using Sons.Ai.Vail;
using Sons.Ai.Vail.StimuliTypes;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("RestlessKelvin")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("RestlessKelvin")]
[assembly: AssemblyTitle("RestlessKelvin")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RestlessKelvin;

[HarmonyPatch(typeof(VailActor), "AddImmediateStimuli")]
public class Patch
{
	private static readonly string RestNowStimuliName = typeof(RestNowStimuli).FullName;

	private static bool Prefix(ImmediateStimuli __0)
	{
		if (__0 != null)
		{
			return ((Object)__0).GetIl2CppType().FullName != RestNowStimuliName;
		}
		return true;
	}
}
public class PluginInfo
{
	public const string PluginGuid = "codengine.RestlessKelvin";

	public const string PluginName = "RestlessKelvin";

	public const string PluginVersion = "1.0.0";
}
[BepInPlugin("codengine.RestlessKelvin", "RestlessKelvin", "1.0.0")]
public class RestlessKelvinPlugin : BasePlugin
{
	public static readonly ManualLogSource Logger = new ManualLogSource("RestlessKelvinPlugin");

	public override void Load()
	{
		Logger.Sources.Add((ILogSource)(object)Logger);
		Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
		((BasePlugin)this).Log.LogInfo((object)"Loaded RestlessKelvin by codengine");
	}
}