diff --git a/Game Items/ResourceMonitor.cs b/Game Items/ResourceMonitor.cs index 730ef33..c8fc0aa 100644 --- a/Game Items/ResourceMonitor.cs +++ b/Game Items/ResourceMonitor.cs @@ -1,7 +1,7 @@ -using Nautilus.Assets; -using Nautilus.Crafting; -using System; +using System; using System.Collections.Generic; +using Nautilus.Assets; +using Nautilus.Crafting; using UnityEngine; namespace ResourceMonitor @@ -11,11 +11,13 @@ public class ResourceMonitor public static readonly Vector3 LargeScale = new Vector3(2.3f, 2.3f, 1f); public PrefabInfo PrefabInfo { get; private set; } public Boolean IsLarge { get; private set; } + public ResourceMonitor(PrefabInfo prefabInfo, bool isLarge = false) { this.PrefabInfo = prefabInfo; this.IsLarge = isLarge; } + public RecipeData GetRecipe() { int numIngredients = 1; @@ -24,12 +26,12 @@ public RecipeData GetRecipe() return new RecipeData() { craftAmount = 1, - Ingredients = new List() + Ingredients = new List() { - new CraftData.Ingredient(TechType.Glass, numIngredients), - new CraftData.Ingredient(TechType.ComputerChip, numIngredients), - new CraftData.Ingredient(TechType.AdvancedWiringKit, numIngredients) - } + new Ingredient(TechType.Glass, numIngredients), + new Ingredient(TechType.ComputerChip, numIngredients), + new Ingredient(TechType.AdvancedWiringKit, numIngredients), + }, }; } diff --git a/Plugin.cs b/Plugin.cs index 3a224fa..fa76b4b 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -35,7 +35,7 @@ private const string MODNAME = "ResourceMonitor", AUTHOR = "0x4b", GUID = "katemods.resourcemonitor.unofficial", - VERSION = "2.0.36"; + VERSION = "2.0.38"; #endregion public void Awake() diff --git a/ResourceMonitor.csproj b/ResourceMonitor.csproj index 4e988ae..9bb979c 100644 --- a/ResourceMonitor.csproj +++ b/ResourceMonitor.csproj @@ -26,7 +26,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive