Decompiled source of MassProdCores v1.0.3

plugins/MassProdCores/MassProdCores.dll

Decompiled 2 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using EquinoxsModUtils;
using HarmonyLib;

[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: AssemblyVersion("0.0.0.0")]
namespace MassProdCoresMod;

[BepInPlugin("com.Jarl.MassProdCores", "MassProdCores", "1.0.1")]
public class MassProdCoresPlugin : BaseUnityPlugin
{
	private const string MyGUID = "com.Jarl.MassProdCores";

	private const string PluginName = "MassProdCores";

	private const string VersionString = "1.0.1";

	private static readonly Harmony Harmony = new Harmony("com.Jarl.MassProdCores");

	public static ManualLogSource Log = new ManualLogSource("MassProdCores");

	private void Awake()
	{
		Log = ((BaseUnityPlugin)this).Logger;
		((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: MassProdCores, 1.0.1 is loading...");
		Harmony.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: MassProdCores, 1.0.1 is loaded.");
		AddRecipes();
	}

	private void AddRecipes()
	{
		//IL_0001: Unknown result type (might be due to invalid IL or missing references)
		//IL_0006: Unknown result type (might be due to invalid IL or missing references)
		//IL_0011: Unknown result type (might be due to invalid IL or missing references)
		//IL_0013: Unknown result type (might be due to invalid IL or missing references)
		//IL_0018: Unknown result type (might be due to invalid IL or missing references)
		//IL_0020: Unknown result type (might be due to invalid IL or missing references)
		//IL_002d: Unknown result type (might be due to invalid IL or missing references)
		//IL_003f: Unknown result type (might be due to invalid IL or missing references)
		//IL_004f: Unknown result type (might be due to invalid IL or missing references)
		//IL_005d: Unknown result type (might be due to invalid IL or missing references)
		//IL_0073: Expected O, but got Unknown
		//IL_0074: Unknown result type (might be due to invalid IL or missing references)
		//IL_0079: Unknown result type (might be due to invalid IL or missing references)
		//IL_0084: Unknown result type (might be due to invalid IL or missing references)
		//IL_0086: Unknown result type (might be due to invalid IL or missing references)
		//IL_008b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0093: Unknown result type (might be due to invalid IL or missing references)
		//IL_00a0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00b2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00c2: Unknown result type (might be due to invalid IL or missing references)
		//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
		//IL_00e6: Expected O, but got Unknown
		//IL_00e7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
		//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
		//IL_00fe: Unknown result type (might be due to invalid IL or missing references)
		//IL_0106: Unknown result type (might be due to invalid IL or missing references)
		//IL_010d: Unknown result type (might be due to invalid IL or missing references)
		//IL_011e: Unknown result type (might be due to invalid IL or missing references)
		//IL_0130: Unknown result type (might be due to invalid IL or missing references)
		//IL_0146: Unknown result type (might be due to invalid IL or missing references)
		//IL_0156: Unknown result type (might be due to invalid IL or missing references)
		//IL_0164: Unknown result type (might be due to invalid IL or missing references)
		//IL_017a: Expected O, but got Unknown
		ModUtils.AddNewRecipe(new NewRecipeDetails
		{
			unlockName = "Advanced Electronics",
			craftingMethod = (CraftingMethod)0,
			duration = 60,
			ingredients = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Shiverthorn Extract Gel", 2),
				new RecipeResourceInfo("Gearbox", 1)
			},
			outputs = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Cooling System", 50)
			}
		}, true);
		ModUtils.AddNewRecipe(new NewRecipeDetails
		{
			unlockName = "Advanced Electronics",
			craftingMethod = (CraftingMethod)0,
			duration = 60,
			ingredients = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Wire Spindle", 2),
				new RecipeResourceInfo("Gearbox", 4)
			},
			outputs = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Research Core 380nm (Purple)", 50)
			}
		}, true);
		ModUtils.AddNewRecipe(new NewRecipeDetails
		{
			unlockName = "Advanced Electronics",
			craftingMethod = (CraftingMethod)0,
			duration = 60,
			craftTierRequired = 1,
			ingredients = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Research Core 380nm (Purple)", 300),
				new RecipeResourceInfo("Processor Array", 6),
				new RecipeResourceInfo("Cooling System", 150)
			},
			outputs = new List<RecipeResourceInfo>
			{
				new RecipeResourceInfo("Research Core 480nm (Blue)", 25)
			}
		}, true);
	}
}