diff --git a/GameClasses/Console.cs b/GameClasses/Console.cs deleted file mode 100644 index bfde0f0..0000000 --- a/GameClasses/Console.cs +++ /dev/null @@ -1,29 +0,0 @@ -using HarmonyLib; - -using UnityEngine; - -namespace ValheimRecycle -{ - [HarmonyPatch(typeof(Console), "InputText")] - public static class ConsolePatch - { - - public static bool Prefix(Console __instance) - { - string text = __instance.m_input.text; - - if (text.StartsWith("run")) - { - ConsolePatch.Run(); - } - return true; - - } - - - public static void Run() - { - Debug.Log("Test"); - } - } -} diff --git a/GameClasses/InventoryGui.cs b/GameClasses/InventoryGui.cs index 94a867e..32db01d 100644 --- a/GameClasses/InventoryGui.cs +++ b/GameClasses/InventoryGui.cs @@ -221,7 +221,7 @@ internal static bool PrefixUpdateRecipe(InventoryGui __instance, Player player, } __instance.m_recipeName.text = text; - __instance.m_recipeDecription.text = Localization.instance.Localize(ItemDrop.ItemData.GetTooltip(__instance.m_selectedRecipe.Key.m_item.m_itemData, num, true)); + __instance.m_recipeDecription.text = Localization.instance.Localize(ItemDrop.ItemData.GetTooltip(__instance.m_selectedRecipe.Key.m_item.m_itemData, num, true, Game.m_worldLevel)); if (value != null) { __instance.m_itemCraftType.gameObject.SetActive(true); diff --git a/Utils.cs b/Utils.cs index 453469b..66cdebc 100644 --- a/Utils.cs +++ b/Utils.cs @@ -99,8 +99,6 @@ internal static void DoRecycle(Player player, InventoryGui __instance) { __instance.m_craftItemDoneEffects.Create(player.transform.position, Quaternion.identity, null, 1f); } - Game.instance.GetPlayerProfile().m_playerStats.m_crafts++; - Gogan.LogEvent("Game", "Crafted", __instance.m_craftRecipe.m_item.m_itemData.m_shared.m_name, (long)downgradedQuality); } } diff --git a/ValheimRecycle.cs b/ValheimRecycle.cs index 3f4e29f..2b4ef2c 100644 --- a/ValheimRecycle.cs +++ b/ValheimRecycle.cs @@ -7,7 +7,7 @@ namespace ValheimRecycle { - [BepInPlugin("org.lafchi.plugins.valheim_recycle", "Valheim Recycle", "2.5.0")] + [BepInPlugin("org.lafchi.plugins.valheim_recycle", "Valheim Recycle", "3.0.0")] [BepInProcess("valheim.exe")] public class ValheimRecycle : BaseUnityPlugin { diff --git a/ValheimRecycle.csproj b/ValheimRecycle.csproj index e12c42b..8d3bea0 100644 --- a/ValheimRecycle.csproj +++ b/ValheimRecycle.csproj @@ -36,7 +36,6 @@ -