Decompiled source of GoosePlush v1.0.0

PlushGoose.dll

Decompiled 2 days 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("PlushGoose")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PlushGoose")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("9c88dff9-5abe-4e0d-9dbe-90af6fb2ef63")]
[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 PlushGoose;

[BepInPlugin("Yrlou.ScrapGoose", "gooseScrap", "1.0.0")]
public class GooseScrapMod : BaseUnityPlugin
{
	private const string modGUID = "Yrlou.ScrapGoose";

	private const string modName = "gooseScrap";

	private const string modVersion = "1.0.0";

	private readonly Harmony harmony = new Harmony("Yrlou.ScrapGoose");

	private static GooseScrapMod Instance;

	internal ManualLogSource mls;

	private void Awake()
	{
		if ((Object)(object)Instance == (Object)null)
		{
			Instance = this;
		}
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "plushgoose");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/source/PlushGooseItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 29, (LevelTypes)(-1));
		mls = Logger.CreateLogSource("Yrlou.ScrapGoose");
		mls.LogInfo((object)"New Goose Scrap is now will SPAWN!");
		harmony.PatchAll(typeof(GooseScrapMod));
	}
}