Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions Game Items/ResourceMonitor.cs
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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;
Expand All @@ -24,12 +26,12 @@ public RecipeData GetRecipe()
return new RecipeData()
{
craftAmount = 1,
Ingredients = new List<CraftData.Ingredient>()
Ingredients = new List<Ingredient>()
{
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),
},
};
}

Expand Down
2 changes: 1 addition & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion ResourceMonitor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="UnityEngine.Modules" Version="2021.3.33" IncludeAssets="compile" />
<PackageReference Include="Subnautica.GameLibs" Version="71288.0.0-r.0" />
<PackageReference Include="Subnautica.GameLibs" Version="82304.0.0-r.0" />
<PackageReference Include="PolySharp" Version="1.15.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down