Decompiled source of EvenMoreCats v1.5.0

EvenMoreCats.dll

Decompiled a month ago
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.Logging;
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("EvenMoreCats")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EvenMoreCats")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("dcf02d2a-c88c-4a9d-bb97-4d4cc49e0204")]
[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 EvenMoreCats;

[BepInPlugin("EvenMoreCats.ModByLoredze", "Even More Cats", "0.1")]
public class CatsModBase : BaseUnityPlugin
{
	private const string modGUID = "EvenMoreCats.ModByLoredze";

	private const string modName = "Even More Cats";

	private const string modVersion = "0.1";

	private readonly Harmony harmony = new Harmony("EvenMoreCats.ModByLoredze");

	private static CatsModBase instance;

	internal ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)instance == (Object)null)
		{
			instance = this;
		}
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "binguscatbundle");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/EvenMoreCats/BingusItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 15, (LevelTypes)(-1));
		string text2 = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "gnegitembundle");
		AssetBundle val3 = AssetBundle.LoadFromFile(text2);
		Item val4 = val3.LoadAsset<Item>("Assets/EvenMoreCats/GnegItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
		Utilities.FixMixerGroups(val4.spawnPrefab);
		Items.RegisterScrap(val4, 20, (LevelTypes)(-1));
		string text3 = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "komaruitembundle");
		AssetBundle val5 = AssetBundle.LoadFromFile(text3);
		Item val6 = val5.LoadAsset<Item>("Assets/EvenMoreCats/KomaruItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
		Utilities.FixMixerGroups(val6.spawnPrefab);
		Items.RegisterScrap(val6, 8, (LevelTypes)(-1));
		mls = Logger.CreateLogSource("EvenMoreCats.ModByLoredze");
		mls.LogInfo((object)"Even More Cats works");
		harmony.PatchAll(typeof(CatsModBase));
	}
}