Decompiled source of GundamScraps v1.1.0

BepInEx/plugins/GundamScraps.dll

Decompiled 8 months ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using LethalLib.Modules;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("GundamScraps")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Adds Gundams as scraps")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("GundamScraps")]
[assembly: AssemblyTitle("GundamScraps")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace GundamScraps
{
	[BepInPlugin("GundamScraps", "GundamScraps", "1.0.0")]
	public class Plugin : BaseUnityPlugin
	{
		private const string GUID = "VulpixHouse.GundamScraps";

		private const string NAME = "GundamScraps";

		private const string VERSION = "1.0.1";

		private void Awake()
		{
			string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "gundambundle");
			AssetBundle val = AssetBundle.LoadFromFile(text);
			Item val2 = val.LoadAsset<Item>("Assets/Models/RX-78-2 Gundam.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
			Utilities.FixMixerGroups(val2.spawnPrefab);
			Items.RegisterScrap(val2, 5, (LevelTypes)(-1));
			Item val3 = val.LoadAsset<Item>("Assets/Models/StrikeFreedomGundam.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
			Utilities.FixMixerGroups(val3.spawnPrefab);
			Items.RegisterScrap(val3, 4, (LevelTypes)(-1));
			Item val4 = val.LoadAsset<Item>("Assets/Models/NuGundam.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
			Utilities.FixMixerGroups(val4.spawnPrefab);
			Items.RegisterScrap(val4, 3, (LevelTypes)(-1));
			Item val5 = val.LoadAsset<Item>("Assets/Models/Zeta Gundam.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
			Utilities.FixMixerGroups(val5.spawnPrefab);
			Items.RegisterScrap(val5, 4, (LevelTypes)(-1));
			Item val6 = val.LoadAsset<Item>("Assets/Models/Ez8.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
			Utilities.FixMixerGroups(val6.spawnPrefab);
			Items.RegisterScrap(val6, 6, (LevelTypes)(-1));
			Item val7 = val.LoadAsset<Item>("Assets/Models/RX-75-4 Guntank.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab);
			Utilities.FixMixerGroups(val7.spawnPrefab);
			Items.RegisterScrap(val7, 4, (LevelTypes)(-1));
			Item val8 = val.LoadAsset<Item>("Assets/Models/Sazabi.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab);
			Utilities.FixMixerGroups(val8.spawnPrefab);
			Items.RegisterScrap(val8, 1, (LevelTypes)(-1));
			Item val9 = val.LoadAsset<Item>("Assets/Models/Zaku II.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab);
			Utilities.FixMixerGroups(val9.spawnPrefab);
			Items.RegisterScrap(val9, 5, (LevelTypes)(-1));
			Item val10 = val.LoadAsset<Item>("Assets/Models/Raiser.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab);
			Utilities.FixMixerGroups(val10.spawnPrefab);
			Items.RegisterScrap(val10, 2, (LevelTypes)(-1));
			Item val11 = val.LoadAsset<Item>("Assets/Models/Zeong.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val11.spawnPrefab);
			Utilities.FixMixerGroups(val11.spawnPrefab);
			Items.RegisterScrap(val11, 1, (LevelTypes)(-1));
			Item val12 = val.LoadAsset<Item>("Assets/Models/Kshatriya.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val12.spawnPrefab);
			Utilities.FixMixerGroups(val12.spawnPrefab);
			Items.RegisterScrap(val12, 3, (LevelTypes)(-1));
			Item val13 = val.LoadAsset<Item>("Assets/Models/Gundam Mk2.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val13.spawnPrefab);
			Utilities.FixMixerGroups(val13.spawnPrefab);
			Items.RegisterScrap(val13, 5, (LevelTypes)(-1));
			Item val14 = val.LoadAsset<Item>("Assets/Models/Gouf Custom.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val14.spawnPrefab);
			Utilities.FixMixerGroups(val14.spawnPrefab);
			Items.RegisterScrap(val14, 3, (LevelTypes)(-1));
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "VulpixHouse.GundamScraps");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin GundamScraps is loaded!");
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "GundamScraps";

		public const string PLUGIN_NAME = "GundamScraps";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}