using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BepInEx;
using Microsoft.CodeAnalysis;
using MonoMod.RuntimeDetour;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Mod")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("d6d7a494-722e-4763-959b-c2d6b6a42b01")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace Mod
{
public class SlipperyCover
{
public static void Start()
{
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
new Hook((MethodBase)typeof(FlippableCover).GetMethod("Start", BindingFlags.Instance | BindingFlags.NonPublic), typeof(SlipperyCover).GetMethod("HookFlippableCoverStart", BindingFlags.Static | BindingFlags.Public));
}
public static void HookFlippableCoverStart(Action<FlippableCover> orig, FlippableCover self)
{
orig(self);
self.DamageReceivedOnSlide = 0f;
}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("smrekish.etg.slipperycover", "Sliding doesn't break tables", "1.0.1")]
public class Plugin : BaseUnityPlugin
{
public const string GUID = "smrekish.etg.slipperycover";
public const string NAME = "Sliding doesn't break tables";
public const string VERSION = "1.0.1";
public const string TEXT_COLOR = "#00FFFF";
public void Start()
{
ETGModMainBehaviour.WaitForGameManagerStart((Action<GameManager>)GMStart);
}
public void GMStart(GameManager g)
{
SlipperyCover.Start();
Log("Sliding doesn't break tables v1.0.1 started successfully.", "#00FFFF");
}
public static void Log(string text, string color = "#FFFFFF")
{
ETGModConsole.Log((object)("<color=" + color + ">" + text + "</color>"), false);
}
}
}