diff --git a/ChebsNecromancy/BasePlugin.cs b/ChebsNecromancy/BasePlugin.cs index 3dd836e..90c4902 100644 --- a/ChebsNecromancy/BasePlugin.cs +++ b/ChebsNecromancy/BasePlugin.cs @@ -30,11 +30,12 @@ namespace ChebsNecromancy [BepInPlugin(PluginGuid, PluginName, PluginVersion)] [BepInDependency(Main.ModGuid)] [NetworkCompatibility(CompatibilityLevel.EveryoneMustHaveMod, VersionStrictness.Minor)] + //[NetworkCompatibility(CompatibilityLevel.NotEnforced, VersionStrictness.None)] internal class BasePlugin : BaseUnityPlugin { public const string PluginGuid = "com.chebgonaz.ChebsNecromancy"; public const string PluginName = "ChebsNecromancy"; - public const string PluginVersion = "4.10.0"; + public const string PluginVersion = "4.10.1"; private const string ConfigFileName = PluginGuid + ".cfg"; private static readonly string ConfigFileFullPath = Path.Combine(Paths.ConfigPath, ConfigFileName); diff --git a/ChebsNecromancy/ChebsNecromancy.csproj b/ChebsNecromancy/ChebsNecromancy.csproj index c8871c2..f1a7a21 100644 --- a/ChebsNecromancy/ChebsNecromancy.csproj +++ b/ChebsNecromancy/ChebsNecromancy.csproj @@ -24,7 +24,7 @@ e3243d22-4307-4008-ba36-9f326008cde5 - 4.10.0.0 + 4.10.1.0 $(Version) $(Version) diff --git a/ChebsNecromancy/Package/README.md b/ChebsNecromancy/Package/README.md index 35ca22c..8b0fe9e 100644 --- a/ChebsNecromancy/Package/README.md +++ b/ChebsNecromancy/Package/README.md @@ -154,6 +154,7 @@ A special thanks to the people who've helped me along the way: Date | Version | Notes --- | --- | --- +25/04/2024 | 4.10.0 | Prepare for ashlands; upgrade CVL 28/01/2024 | 4.9.1 | Reduce logging in case of missing bone color data 27/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity 25/01/2024 | 4.8.0 | Add skeleton priest to heal other minions diff --git a/ChebsNecromancy/Package/manifest.json b/ChebsNecromancy/Package/manifest.json index 0091370..7011413 100644 --- a/ChebsNecromancy/Package/manifest.json +++ b/ChebsNecromancy/Package/manifest.json @@ -1,7 +1,7 @@ { "name": "ChebsNecromancy", "description": "Cheb's Necromancy adds Necromancy to Valheim via craftable wands and structures. Minions will follow you, guard your base, and perform menial tasks.", - "version_number": "4.10.0", + "version_number": "4.10.1", "website_url": "https://github.com/jpw1991/chebs-necromancy", "dependencies": [ "ValheimModding-Jotunn-2.19.3" diff --git a/ChebsNecromancy/Structures/FarmingPylon.cs b/ChebsNecromancy/Structures/FarmingPylon.cs index 22b9620..dbae4ff 100644 --- a/ChebsNecromancy/Structures/FarmingPylon.cs +++ b/ChebsNecromancy/Structures/FarmingPylon.cs @@ -114,7 +114,7 @@ private void PickPickables() var pickable = col.GetComponentInParent(); if (pickable != null && PickableList.Value.Exists(item => pickable.name.Contains(item))) { - pickable.m_nview.InvokeRPC("Pick"); + pickable.m_nview.InvokeRPC("RPC_Pick"); } } } diff --git a/ChebsNecromancy/Structures/RefuelerPylon.cs b/ChebsNecromancy/Structures/RefuelerPylon.cs index f3f4648..31be6e2 100644 --- a/ChebsNecromancy/Structures/RefuelerPylon.cs +++ b/ChebsNecromancy/Structures/RefuelerPylon.cs @@ -228,7 +228,7 @@ void LoadSmelterWithFuel(string fuel) } _inventory.RemoveItem(itemData, 1); - smelter.m_nview.InvokeRPC("AddOre", itemData.m_dropPrefab.name); + smelter.m_nview.InvokeRPC("RPC_AddOre", itemData.m_dropPrefab.name); smelter.m_addedOreTime = Time.time; if (smelter.m_addOreAnimationDuration > 0f) { @@ -247,7 +247,7 @@ private void ManageFireplace(Fireplace fireplace) if (_inventory.HaveItem(fireplace.m_fuelItem.m_itemData.m_shared.m_name)) { - fireplace.m_nview.InvokeRPC("AddFuel"); + fireplace.m_nview.InvokeRPC("RPC_AddFuel"); _inventory.RemoveItem(fireplace.m_fuelItem.m_itemData.m_shared.m_name, 1); } } @@ -257,7 +257,7 @@ private void ManageCookingStation(CookingStation cookingStation) //remove cooked items if (cookingStation.HaveDoneItem()) { - cookingStation.m_nview.InvokeRPC("RemoveDoneItem", transform.position); + cookingStation.m_nview.InvokeRPC("RPC_RemoveDoneItem", transform.position); } // add cookable items @@ -268,7 +268,7 @@ private void ManageCookingStation(CookingStation cookingStation) if (cookableItem != null) { var cookableItemName = cookableItem.m_dropPrefab.name; - cookingStation.m_nview.InvokeRPC("AddItem", cookableItemName); + cookingStation.m_nview.InvokeRPC("RPC_AddItem", cookableItemName); _inventory.RemoveOneItem(cookableItem); } } diff --git a/README.md b/README.md index 8b0fe9e..db020d4 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ A special thanks to the people who've helped me along the way: Date | Version | Notes --- | --- | --- +15/05/2024 | 4.10.1 | Fix incorrect RPC names eg. AddFuel -> RPC_AddFuel 25/04/2024 | 4.10.0 | Prepare for ashlands; upgrade CVL 28/01/2024 | 4.9.1 | Reduce logging in case of missing bone color data 27/01/2024 | 4.9.0 | Add different healing levels & spells to the priests; fix a bug that erased some default equipment set in Unity