From dc421c980a5eb1003d560b34668919f90720e466 Mon Sep 17 00:00:00 2001 From: Ivaylo Lafchiev Date: Sat, 10 Apr 2021 10:42:13 +0100 Subject: [PATCH] Add support for Nexus Update Check --- ValheimRecycle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ValheimRecycle.cs b/ValheimRecycle.cs index 7c53777..8c6ab61 100644 --- a/ValheimRecycle.cs +++ b/ValheimRecycle.cs @@ -6,7 +6,7 @@ namespace ValheimRecycle { - [BepInPlugin("org.lafchi.plugins.valheim_recycle", "Valheim Recycle", "1.2.1")] + [BepInPlugin("org.lafchi.plugins.valheim_recycle", "Valheim Recycle", "1.3.1")] [BepInProcess("valheim.exe")] public class ValheimRecycle : BaseUnityPlugin { @@ -22,6 +22,7 @@ public class ValheimRecycle : BaseUnityPlugin internal ConfigEntry tabPosition; internal ConfigEntry resourceMultiplier; internal ConfigEntry preserveOriginalItem; + internal ConfigEntry nexusID; #endregion internal bool InTabDeconstruct() @@ -45,6 +46,7 @@ internal void Awake() new ConfigDescription("The amount of resources to return from recycling (0 to 1, where 1 returns 100% of the resources and 0 returns 0%)", new AcceptableValueRange(0,1)) ); preserveOriginalItem = Config.Bind("General", "PreserveOriginalItem", true, "[EXPERIMENTAL]\nWhether the original item's data should be preserved when downgrading. Useful for mods which add extra properties to items like EpicLoot.\nTurn off if experiencing problems."); + nexusID = Config.Bind("General", "NexusID", 425, "Nexus mod ID for updates"); } internal void OnDestroy()