diff --git a/MxValheim/ILRepack.targets b/MxValheim/ILRepack.targets new file mode 100644 index 0000000..1d9bcb4 --- /dev/null +++ b/MxValheim/ILRepack.targets @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/MxValheim/Libraries/ServerSync.dll b/MxValheim/Libraries/ServerSync.dll new file mode 100644 index 0000000..9d635a2 Binary files /dev/null and b/MxValheim/Libraries/ServerSync.dll differ diff --git a/MxValheim/MxValheim.cs b/MxValheim/MxValheim.cs index 922e1ef..b7cc7c6 100644 --- a/MxValheim/MxValheim.cs +++ b/MxValheim/MxValheim.cs @@ -1,7 +1,6 @@ using BepInEx; using BepInEx.Configuration; using HarmonyLib; -using ServerSync; using System.Collections.Generic; using UnityEngine; @@ -10,14 +9,7 @@ public class MxValheimMod : BaseUnityPlugin { private const string ModGUID = "ovh.mxdev.mxvalheim"; private const string ModName = "MxValheim"; - private const string ModVersion = "1.3.0"; - - private static readonly ConfigSync configSync = new ConfigSync(ModGUID) - { - DisplayName = ModName, - CurrentVersion = ModVersion, - MinimumRequiredVersion = ModVersion - }; + private const string ModVersion = "1.2.1"; public static ConfigEntry Config_Locked; public static ConfigEntry Config_OreMultiplier; @@ -28,28 +20,13 @@ public class MxValheimMod : BaseUnityPlugin void Awake() { - Config_Locked = BindSyncConfig("General", "Lock Configuration", true, "If obsession is on, only admins can change settings."); - configSync.AddLockingConfigEntry(Config_Locked); - Config_OreMultiplier = BindSyncConfig("General","OreMultiplier",3,"How many items should drop for every 1 ore/scrap found."); - Config_rangeMultiplier = BindSyncConfig("General", "CraftingRangeMultiplier",2.0f,"Multiplier for the workbench build/crafting range. Default is 2x."); - Config_bowDrawSpeedBonusPerLevel = BindSyncConfig("General", "BowDrawSpeedBonusPercentPerLevel", 1.0f, "Shorten the bow draw speed by this percent for every bow upgrade level."); - Config_rainDamage = BindSyncConfig("General", "RainDamage", true, "Set to true to stop rain damage, false to return to vanilla behavior."); - Config_boatSpeed = BindSyncConfig("General", "BoatSpeedMultiplier", 2.0f, "Your boat/raft will move without wind at a speed multiplied by this value."); + Config_OreMultiplier = Config.Bind("General","OreMultiplier",3,"How many items should drop for every 1 ore/scrap found."); + Config_rangeMultiplier = Config.Bind("General", "CraftingRangeMultiplier",2.0f,"Multiplier for the workbench build/crafting range. Default is 2x."); + Config_bowDrawSpeedBonusPerLevel = Config.Bind("General", "BowDrawSpeedBonusPercentPerLevel", 1.0f, "Shorten the bow draw speed by this percent for every bow upgrade level."); + Config_rainDamage = Config.Bind("General", "RainDamage", true, "Set to true to stop rain damage, false to return to vanilla behavior."); + Config_boatSpeed = Config.Bind("General", "BoatSpeedMultiplier", 2.0f, "Your boat/raft will move without wind at a speed multiplied by this value."); Harmony harmony = new Harmony(ModGUID); harmony.PatchAll(); } - - /// - /// Helper method to bind a config and register it for server syncing. - /// - private ConfigEntry BindSyncConfig(string group, string name, T value, string description, bool synchronizedSetting = true) - { - ConfigEntry configEntry = this.Config.Bind(group, name, value, description); - - SyncedConfigEntry syncedConfigEntry = configSync.AddConfigEntry(configEntry); - syncedConfigEntry.SynchronizedConfig = synchronizedSetting; - - return configEntry; - } } \ No newline at end of file diff --git a/MxValheim/MxValheim.csproj b/MxValheim/MxValheim.csproj index 3022547..e716e67 100644 --- a/MxValheim/MxValheim.csproj +++ b/MxValheim/MxValheim.csproj @@ -10,6 +10,7 @@ MxValheim MxValheim v4.6.2 + 12.0 512 true @@ -43,9 +44,6 @@ E:\SteamLibrary\steamapps\common\Valheim\BepInEx\core\BepInEx.dll - - C:\Users\blood\Downloads\ServerSync.dll - @@ -73,5 +71,8 @@ + + + \ No newline at end of file