Decompiled source of No Lox Riders v1.0.1

JamesJonesTV-NoLoxRiders.dll

Decompiled 10 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using JetBrains.Annotations;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("NoLoxMount")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoLoxMount")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("5AFCDAD8-0F90-4560-A96A-1A518F47D682")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoLoxMount;

[BepInPlugin("kg.NoLoxMount", "kg.NoLoxMount", "1.0.0")]
public class NoLoxMount : BaseUnityPlugin
{
	[HarmonyPatch(typeof(Sadle), "Interact")]
	private static class Sadle_Interact_Patch
	{
		[UsedImplicitly]
		private static bool Prefix(Sadle __instance, bool alt)
		{
			string prefabName = Utils.GetPrefabName(((Component)__instance.m_character).gameObject);
			if (!alt)
			{
				return Utils.GetPrefabName(prefabName) != "Lox";
			}
			return true;
		}
	}

	private const string GUID = "kg.NoLoxMount";

	private const string VERSION = "1.0.0";

	private void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("kg.NoLoxMount").PatchAll();
	}
}