Skip to content

Commit

Permalink
Merge pull request #3 from Ivaylo-Lafchiev/nexus-update-checker-support
Browse files Browse the repository at this point in the history
Add support for Nexus  Update Check
  • Loading branch information
Ivaylo-Lafchiev authored Apr 10, 2021
2 parents 4112b61 + dc421c9 commit 579d311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ValheimRecycle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -22,6 +22,7 @@ public class ValheimRecycle : BaseUnityPlugin
internal ConfigEntry<RecycleConfig.TabPositions> tabPosition;
internal ConfigEntry<float> resourceMultiplier;
internal ConfigEntry<bool> preserveOriginalItem;
internal ConfigEntry<int> nexusID;
#endregion

internal bool InTabDeconstruct()
Expand All @@ -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<float>(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<int>("General", "NexusID", 425, "Nexus mod ID for updates");

}
internal void OnDestroy()
Expand Down

0 comments on commit 579d311

Please sign in to comment.