using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using On.RoR2;
using RoR2;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NoFallDamage")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoFallDamage")]
[assembly: AssemblyTitle("NoFallDamage")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace CustomEmotesAdvancedPicker;
[Serializable]
[BepInPlugin("com.brynzananas.nofalldamage", "No Fall Damage", "1.0.0")]
[BepInDependency("com.bepis.r2api", "5.0.10")]
public class Main : BaseUnityPlugin
{
public const string ModGuid = "com.brynzananas.nofalldamage";
public const string ModName = "No Fall Damage";
public const string ModVer = "1.0.0";
public void Awake()
{
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
//IL_0012: Expected O, but got Unknown
GlobalEventManager.IsImmuneToFallDamage += new hook_IsImmuneToFallDamage(No);
}
private bool No(orig_IsImmuneToFallDamage orig, GlobalEventManager self, CharacterBody body)
{
orig.Invoke(self, body);
return true;
}
}