Decompiled source of StoneFluxScrap v1.0.1

GutterBirds.dll

Decompiled 11 months 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 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("GutterBirds")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("GutterBirds")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("66f00767-d64c-4f56-8098-04c8f655e903")]
[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 StoneFluxPauldron;

[BepInPlugin("Muddii.StoneFluxPauldron", "StoneFluxPauldron", "1.0.0.0")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "Muddii.StoneFluxPauldron";

	private const string NAME = "StoneFluxPauldron";

	private const string VERSION = "1.0.0.0";

	public static Plugin Instance;

	private void Awake()
	{
		Instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "stoneflux");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/Bundle assets/StoneFluxItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 6, (LevelTypes)4);
		Items.RegisterScrap(val2, 8, (LevelTypes)8);
		Items.RegisterScrap(val2, 16, (LevelTypes)32);
		Items.RegisterScrap(val2, 6, (LevelTypes)128);
		Items.RegisterScrap(val2, 6, (LevelTypes)256);
		Items.RegisterScrap(val2, 6, (LevelTypes)512);
		Items.RegisterScrap(val2, 10, (LevelTypes)(-1));
		Items.RegisterScrap(val2, 0, (LevelTypes)16);
		Items.RegisterScrap(val2, 0, (LevelTypes)64);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Patched Stlux");
	}
}