Decompiled source of LethalHelper v1.0.2

AbelLethalHelper.dll

Decompiled 2 weeks ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
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("Abel")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Some stuff to help Lethal Company mods development")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+d3cd53a83d22175ccb9aed7ecaf9c21ffb7682dd")]
[assembly: AssemblyProduct("Abel's Lethal Helper")]
[assembly: AssemblyTitle("AbelLethalHelper")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AbelMuak.Libs.LethalHelper;

[Serializable]
public class ScrapInfo
{
	public Item ItemDef;

	public int Rarity;

	public int LevelType;

	public ScrapInfo(Item ItemDef, int Rarity, int LevelType = -1)
	{
		this.ItemDef = ItemDef;
		this.Rarity = Rarity;
		this.LevelType = LevelType;
	}
}
public class ScrapInfoJSON
{
	public string ItemDef;

	public int Rarity;

	public int LevelType;

	public ScrapInfoJSON(string ItemDef, int Rarity, int LevelType = -1)
	{
		this.ItemDef = ItemDef;
		this.Rarity = Rarity;
		this.LevelType = LevelType;
	}
}
[Serializable]
[CreateAssetMenu(fileName = "ScrapList", menuName = "Abel/Scrap list", order = 0)]
public class ScrapList : ScriptableObject
{
	public List<ScrapInfo> ScrapInfos;
}

LethalHelperPlugin.dll

Decompiled 2 weeks ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using Microsoft.CodeAnalysis;

[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("LethalHelperPlugin")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.3.0")]
[assembly: AssemblyInformationalVersion("1.0.3+d3cd53a83d22175ccb9aed7ecaf9c21ffb7682dd")]
[assembly: AssemblyProduct("Library to add stuff to Lethal Company")]
[assembly: AssemblyTitle("LethalHelperPlugin")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.3.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 LethalHelperPlugin
{
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "LethalHelperPlugin";

		public const string PLUGIN_NAME = "Library to add stuff to Lethal Company";

		public const string PLUGIN_VERSION = "1.0.3";
	}
}
namespace AbelMuak.Libs.LethalHelper
{
	[BepInPlugin("com.abelmuak.libs.lethalthings", "Lethal Helper", "1.0.3")]
	public class Plugin : BaseUnityPlugin
	{
		internal static ManualLogSource Logger;

		public const string PLUGIN_GUID = "com.abelmuak.libs.lethalthings";

		public const string PLUGIN_NAME = "Lethal Helper";

		public const string PLUGIN_VERSION = "1.0.3";

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Logger.LogInfo((object)"Plugin com.abelmuak.libs.lethalthings is loaded!");
		}
	}
}