Decompiled source of MPlushScrap v1.1.1

BepInEx/plugins/fumoCirnoScrap/CirnoFumoScrap.dll

Decompiled 2 years 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 BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using LethalLib.Modules;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("CirnoFumoScrap")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A template for Lethal Company")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+30873030ade78116bcfb416e4f260df69ecf99f5")]
[assembly: AssemblyProduct("CirnoFumoScrap")]
[assembly: AssemblyTitle("CirnoFumoScrap")]
[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 CirnoFumoScrap
{
	[BepInPlugin("badham.lc.cirnoscrap", "Cirno Fumo Scrap", "2.0.1")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class FumoCirnoMod : BaseUnityPlugin
	{
		private const string modGUID = "badham.lc.cirnoscrap";

		private const string modName = "Cirno Fumo Scrap";

		private const string modVersion = "2.0.1";

		private readonly Harmony harmony = new Harmony("badham.lc.cirnoscrap");

		private static FumoCirnoMod Instance;

		private ConfigEntry<int> configFumoRarity;

		internal ManualLogSource mls;

		public static AssetBundle CirnoAssets;

		private void Awake()
		{
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_009a: Expected O, but got Unknown
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			CirnoAssets = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "fumocirno"));
			mls = Logger.CreateLogSource("badham.lc.cirnoscrap");
			mls.LogInfo((object)"Cirno has infiltrated your facilities [Version 2.0.1]...");
			harmony.PatchAll(typeof(FumoCirnoMod));
			configFumoRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "FumoRarity", 30, new ConfigDescription("How rare Fumo Cirnos are to find. Lower values mean Fumos spawn less often", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>()));
			Item val = CirnoAssets.LoadAsset<Item>("assets/Mods/CirnoFumo/FumoCirno.asset");
			if ((Object)(object)val == (Object)null)
			{
				mls.LogError((object)"Failed to load Cirno prefab.");
				return;
			}
			NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
			Items.RegisterScrap(val, configFumoRarity.Value, (LevelTypes)(-1));
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "CirnoFumoScrap";

		public const string PLUGIN_NAME = "CirnoFumoScrap";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}

BepInEx/plugins/annyplushie/AnnyPlushie.dll

Decompiled 2 years 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 BepInEx.Configuration;
using BepInEx.Logging;
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("AnnyPlushie")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Adds a Anny Plushie into Lethal Company")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2")]
[assembly: AssemblyProduct("AnnyPlushie")]
[assembly: AssemblyTitle("AnnyPlushie")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.2.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 AnnyFumo
{
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "AnnyPlushie";

		public const string PLUGIN_NAME = "AnnyPlushie";

		public const string PLUGIN_VERSION = "1.0.2";
	}
}
namespace AnnyFumoScrap
{
	[BepInPlugin("adesi.lc.annyscrap", "Anny Plushie Scrap", "1.0.2")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class FumoAnnyMod : BaseUnityPlugin
	{
		private const string modGUID = "adesi.lc.annyscrap";

		private const string modName = "Anny Plushie Scrap";

		private const string modVersion = "1.0.2";

		private readonly Harmony harmony = new Harmony("adesi.lc.annyscrap");

		private static FumoAnnyMod Instance;

		private ConfigEntry<int> configFumoRarity;

		internal ManualLogSource mls;

		public static AssetBundle AnnyAssets;

		private void Awake()
		{
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a1: Expected O, but got Unknown
			if ((Object)(object)Instance == (Object)null)
			{
				Instance = this;
			}
			AnnyAssets = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "anny"));
			mls = Logger.CreateLogSource("adesi.lc.annyscrap");
			mls.LogInfo((object)"Anny has infiltrated your facilities...");
			harmony.PatchAll(typeof(FumoAnnyMod));
			configFumoRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "FumoRarityAnny", 30, new ConfigDescription("How rare Fumo Annys are to find. Lower values mean Fumos spawn less often", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>()));
			Item val = AnnyAssets.LoadAsset<Item>("assets/annyfumo/annyfumo.asset");
			if ((Object)(object)val == (Object)null)
			{
				mls.LogError((object)"Failed to load Anny prefab.");
				return;
			}
			NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
			Items.RegisterScrap(val, configFumoRarity.Value, (LevelTypes)510);
		}
	}
}

BepInEx/plugins/dokiplush/doki_plush.dll

Decompiled 2 years ago
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 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: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("doki_plush")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("moni plush")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("doki_plush")]
[assembly: AssemblyTitle("doki_plush")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace doki_plush
{
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "doki_plush";

		public const string PLUGIN_NAME = "doki_plush";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace moni_plush
{
	internal static class Metadata
	{
		public const string Name = "Moni Plushie";

		public const string ModGUID = "com.wdbros.moni_plush";

		public const string Version = "1.0.0";
	}
	[BepInPlugin("com.wdbros.moni_plush", "Moni Plushie", "1.0.0")]
	[BepInProcess("Lethal Company.exe")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		private void Awake()
		{
			AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "dokiplush"));
			if ((Object)(object)val == (Object)null)
			{
				((BaseUnityPlugin)this).Logger.LogError((object)"Doki Plush failed to find asset bundle. Dying gracefully.");
				return;
			}
			Item val2 = val.LoadAsset<Item>("Monika Plush.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
			Items.RegisterScrap(val2, 30, (LevelTypes)(-1));
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Monika Plush with no issues!");
		}
	}
}

BepInEx/plugins/Dino/DinoLI.dll

Decompiled 2 years ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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("DinoLI")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("DinoLI")]
[assembly: AssemblyTitle("DinoLI")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
namespace DinoLI
{
	[BepInPlugin("shyly.dinoMod", "DinoMod", "1.0.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class Plugin : BaseUnityPlugin
	{
		private const string GUID = "shyly.dinoMod";

		private const string NAME = "DinoMod";

		private const string VERSION = "1.0.0";

		private void Awake()
		{
			((BaseUnityPlugin)this).Logger.LogInfo((object)"l>..<l LOADING DINO MOD l>..<l");
			LoadDino("Blue", 9);
			LoadDino("Purple", 9);
			LoadDino("Orange", 9);
			LoadDino("Green", 9);
			LoadDino("Gold", 1);
			((BaseUnityPlugin)this).Logger.LogInfo((object)"l>..<l FINISHED! l>..<l");
		}

		private void LoadDino(string dinoColor, int spawnRate)
		{
			string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "dino" + dinoColor.ToLower());
			Item val = AssetBundle.LoadFromFile(text).LoadAsset<Item>("Assets/Dino/" + dinoColor.ToLower() + "/Item" + dinoColor + ".asset");
			if ((Object)(object)val == (Object)null)
			{
				((BaseUnityPlugin)this).Logger.LogError((object)("Failed to load Dino" + dinoColor + " asset."));
				return;
			}
			NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
			Utilities.FixMixerGroups(val.spawnPrefab);
			TerminalNode val2 = ScriptableObject.CreateInstance<TerminalNode>();
			val2.clearPreviousText = true;
			val2.displayText = "Woah, " + dinoColor + " Dino!";
			Items.RegisterScrap(val, spawnRate, (LevelTypes)(-1));
			((BaseUnityPlugin)this).Logger.LogInfo((object)$"Loaded Item Dino{dinoColor} with {spawnRate}% spawnrate");
		}
	}
}