using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using Pouchop.Patches;
using Reptile;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("GooberBoost")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("GooberBoost")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+72833ea5bbb69a41032f530a541ff3d59baf8e43")]
[assembly: AssemblyProduct("GooberBoost")]
[assembly: AssemblyTitle("GooberBoost")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[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 GooberBoost
{
public static class PluginInfo
{
public const string PLUGIN_GUID = "GooberBoost";
public const string PLUGIN_NAME = "GooberBoost";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace Pouchop
{
[BepInPlugin("com.Pouchabaka.GooberBoost", "GooberBoost", "1.0.0")]
public class PouchopPlugin : BaseUnityPlugin
{
private const string MyGUID = "com.Pouchabaka.GooberBoost";
private const string PluginName = "GooberBoost";
private const string VersionString = "1.0.0";
public static PouchopPlugin Instance;
private Harmony harmony;
public static Player player;
public static ConfigEntry<float> BoostSpeedValue;
private void Awake()
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_0011: Expected O, but got Unknown
harmony = new Harmony("com.Pouchabaka.GooberBoost");
harmony.PatchAll(typeof(PouchopPlugin));
harmony.PatchAll(typeof(BoostAbilityPatch));
harmony.PatchAll(typeof(CharacterVisual));
harmony.PatchAll();
Instance = this;
InitConfig();
}
private void InitConfig()
{
BoostSpeedValue = ((BaseUnityPlugin)this).Config.Bind<float>("General", "Boost Speed", 25f, "Change your boost speed. if you go over 500, good luck.");
}
}
}
namespace Pouchop.Patches
{
internal static class BoostAbilityPatch
{
[HarmonyPatch(typeof(BoostAbility), "Init")]
[HarmonyPostfix]
private static void BoostSpeedValue(BoostAbility __instance)
{
if (!((Ability)__instance).p.isAI)
{
((Ability)__instance).p.normalBoostSpeed = PouchopPlugin.BoostSpeedValue.Value;
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}