using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using HarmonyLib;
using LethalLib.Modules;
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("Amogus Scrap")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Amogus Scrap")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("aecfef94-d847-4654-a1c8-e9b55b963799")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Amogus_Scrap;
[BepInPlugin("impulse.AmogusScrap", "AmogusScrap", "1.1.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class AmogusClass : BaseUnityPlugin
{
private const string modGUID = "impulse.AmogusScrap";
private const string modName = "AmogusScrap";
private const string modVersion = "1.1.0";
private readonly Harmony harmony = new Harmony("impulse.AmogusScrap");
public static AmogusClass instance;
internal ConfigEntry<int> AmogusRarity;
private void Awake()
{
instance = this;
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "amogusmod");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/RedAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
Item val3 = val.LoadAsset<Item>("Assets/OrangeAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
Utilities.FixMixerGroups(val3.spawnPrefab);
Item val4 = val.LoadAsset<Item>("Assets/YellowAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
Utilities.FixMixerGroups(val4.spawnPrefab);
Item val5 = val.LoadAsset<Item>("Assets/GreenAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
Utilities.FixMixerGroups(val5.spawnPrefab);
Item val6 = val.LoadAsset<Item>("Assets/CeruleanAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
Utilities.FixMixerGroups(val6.spawnPrefab);
Item val7 = val.LoadAsset<Item>("Assets/IndigoAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab);
Utilities.FixMixerGroups(val7.spawnPrefab);
Item val8 = val.LoadAsset<Item>("Assets/PurpleAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab);
Utilities.FixMixerGroups(val8.spawnPrefab);
Item val9 = val.LoadAsset<Item>("Assets/PinkAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab);
Utilities.FixMixerGroups(val9.spawnPrefab);
Item val10 = val.LoadAsset<Item>("Assets/WhiteAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab);
Utilities.FixMixerGroups(val10.spawnPrefab);
Item val11 = val.LoadAsset<Item>("Assets/BlackAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val11.spawnPrefab);
Utilities.FixMixerGroups(val11.spawnPrefab);
Item val12 = val.LoadAsset<Item>("Assets/BrownAmogus.asset");
NetworkPrefabs.RegisterNetworkPrefab(val12.spawnPrefab);
Utilities.FixMixerGroups(val12.spawnPrefab);
AmogusRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "AmogusRarity", 8, "The rarity of the amogi, higher rarties are more common, I would suggest keeping it low as there are eleven of them.");
Items.RegisterScrap(val2, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val3, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val4, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val5, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val6, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val7, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val8, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val9, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val10, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val11, AmogusRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val12, AmogusRarity.Value, (LevelTypes)(-1));
}
}