using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using LC_API.BundleAPI;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("AryaanDarkModeMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AryaanDarkModeMod")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("35781efc-b9b0-46b4-8cf7-ee6f605d95a0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AryaanDarkModeMod
{
[BepInPlugin("Aryaan.AryaanDarkMode", "AryaanDarkMode", "1.0.0")]
public class AryaanDarkMode : BaseUnityPlugin
{
private const string modGUID = "Aryaan.AryaanDarkMode";
private const string modName = "AryaanDarkMode";
private const string modVersion = "1.0.0";
public Harmony harmony;
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("Aryaan");
harmony.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"aryaan loaded.");
}
}
}
namespace AryaanDarkModeMod.Patches
{
[HarmonyPatch]
internal class BrackenDarkMode
{
[HarmonyPatch(typeof(FlowermanAI), "Start")]
[HarmonyPostfix]
public static void SummonAryaan(FlowermanAI __instance)
{
//IL_009a: Unknown result type (might be due to invalid IL or missing references)
__instance.creatureAngerVoice.clip = BundleLoader.GetLoadedAsset<AudioClip>("assets/badguy.mp3");
__instance.crackNeckSFX = BundleLoader.GetLoadedAsset<AudioClip>("assets/mods.mp3");
__instance.crackNeckAudio.clip = BundleLoader.GetLoadedAsset<AudioClip>("assets/mods.mp3");
Object.Destroy((Object)(object)((Component)((Component)__instance).gameObject.transform.Find("FlowermanModel").Find("LOD1")).gameObject.GetComponent<SkinnedMeshRenderer>());
Object.Instantiate<GameObject>(BundleLoader.GetLoadedAsset<GameObject>("assets/Aryaan.prefab"), ((Component)__instance).gameObject.transform).transform.localPosition = new Vector3(0f, 1.5f, 0f);
}
}
}