using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using HygroDash.Patches;
using Microsoft.CodeAnalysis;
using UnityEngine;
using UnityEngine.AI;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("HygroDash")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+f8f8ea4b2d8417755d23c7e0a1cb1f7e5d36dd13")]
[assembly: AssemblyProduct("HygroDash")]
[assembly: AssemblyTitle("HygroDash")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
namespace HygroDash
{
[BepInPlugin("jacobot5.HygroDash", "HygroDash", "1.0.0")]
public class HygroDashMod : BaseUnityPlugin
{
public const string modGUID = "jacobot5.HygroDash";
public const string modName = "HygroDash";
public const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("jacobot5.HygroDash");
private static HygroDashMod Instance;
public static ConfigEntry<float> configSpeedMultiplier;
public static ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("jacobot5.HygroDash");
mls.LogInfo((object)"HygroDash has awoken.");
configSpeedMultiplier = ((BaseUnityPlugin)this).Config.Bind<float>("General.Toggles", "SpeedMultiplier", 10f, "How much to multiply Hygrodere Speed by. 1 is normal speed, defaults to 10.");
harmony.PatchAll(typeof(HygroDashMod));
harmony.PatchAll(typeof(BlobAIPatch));
}
}
}
namespace HygroDash.Patches
{
[HarmonyPatch(typeof(BlobAI))]
internal class BlobAIPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void SpeedChangePatch(BlobAI __instance)
{
NavMeshAgent agent = ((EnemyAI)__instance).agent;
agent.speed *= HygroDashMod.configSpeedMultiplier.Value;
}
}
}